diff --git a/README.rst b/README.rst index 9eabda9..cdc3e84 100644 --- a/README.rst +++ b/README.rst @@ -9,37 +9,58 @@ pip install mds-edocument-xrechnung Requires ======== -- Tryton 7.0 +- Tryton 6.0 Changes ======= -*7.0.10 - 12.12.2024* +*6.0.16 - 11.06.2025* + +- fix xml-content to be more valid + +*6.0.15 - 02.05.2025* + +- update copyright + +*6.0.14 - 29.01.2025* + +- updt: optimize rounding of unit_price + +*6.0.13 - 28.01.2025* + +- fix: rounding of unit_price at invoice-line + +*6.0.12 - 09.01.2025* + +- handle tax childs (Jan Grasnick ) + +*6.0.11 - 19.12.2024* + +- Lookup parent taxes for unece tax codes. +- Improve the help text of xrechnung_routeid. Correct a translation. + (Mathias Behrle ) + +*6.0.10 - 12.12.2024* - fix missing views - Remove arguments in super() calls. (Mathias Behrle) -*7.0.9 - 11.12.2024* +*6.0.9 - 11.12.2024* - fix name of party in exceptions -*7.0.7 - 10.12.2024* +*6.0.7 - 10.12.2024* -- add iban to xml-export +- add: export of factur-x 1.07.2, XRechnung 2.3 + 3.0 -*7.0.6 - 09.12.2024* +*6.0.2 - 30.06.2023* -- add: check for valid data to generate xml +- add: credit-note -*7.0.5 - 05.12.2024* +*6.0.1 - 20.10.2022* -- add: export Factur-X 1.07.2 +- works -*7.0.4 - 05.12.2024* +*6.0.0 - 17.10.2022* -- add: export XRechnung 2.3 + 3.0 -- updt: xrechnung-route-id optional - -*7.0.3 - 22.12.2023* - -- compatibility to Tryton 7.0 +- init diff --git a/mixin.py b/mixin.py index dc235ac..555eb3c 100644 --- a/mixin.py +++ b/mixin.py @@ -168,9 +168,6 @@ class EdocumentMixin(object): Args: line (record): model account.invoice.line """ - if not hasattr(line, 'modegross'): - return line.amount - if line.modegross == 'net': return line.amount elif line.modegross == 'gross': @@ -261,11 +258,7 @@ class EdocumentMixin(object): if party and party.identifiers: for x in party.identifiers: if x.type in legal_types: - if x.address: - if x.address == address: - result.append((x.rec_name, {'schemeID': '0002'})) - else: - result.append((x.rec_name, {'schemeID': '0002'})) + result.append((x.rec_name, {'schemeID': '0002'})) return result # end EdocumentMixin diff --git a/setup.py b/setup.py index c82d777..0485635 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f: modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]} # tryton-version -major_version = 7 +major_version = 6 minor_version = 0 requires = [] diff --git a/tests/__init__.py b/tests/__init__.py index 00701b3..bd1a230 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,3 +2,17 @@ # This file is part of the edocument-module for Tryton from m-ds.de. # The COPYRIGHT file at the top level of this repository contains the # full copyright notices and license terms. + +import trytond.tests.test_tryton +import unittest + +from .test_edocument import EdocTestCase + +__all__ = ['suite'] + + +def suite(): + suite = trytond.tests.test_tryton.suite() + suite.addTests(unittest.TestLoader().loadTestsFromTestCase( + EdocTestCase)) + return suite diff --git a/tryton.cfg b/tryton.cfg index ecd8916..43a8f5f 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=7.0.10 +version=6.0.16 depends: edocument_uncefact party diff --git a/view/configuration_form.xml b/view/configuration_form.xml index 244d830..0e079b8 100644 --- a/view/configuration_form.xml +++ b/view/configuration_form.xml @@ -4,7 +4,7 @@ full copyright notices and license terms. --> - +