Compare commits

..

2 commits

Author SHA1 Message Date
Frederik Jaeckel
7d03ec08ad update copyright 2025-05-02 14:49:41 +02:00
Mathias Behrle
bde969a880 Allow the export of paid invoices. 2025-02-11 13:33:50 +01:00
6 changed files with 10 additions and 29 deletions

View file

@ -1,5 +1,3 @@
Copyright (C) 2015-2025 Cédric Krier.
Copyright (C) 2015-2025 B2CK SPRL.
Copyright (C) 2021-2025 martin-data services. Copyright (C) 2021-2025 martin-data services.
Copyright (C) 2025 Mathias Behrle <mathiasb@m9s.biz> Copyright (C) 2025 Mathias Behrle <mathiasb@m9s.biz>

View file

@ -9,29 +9,11 @@ pip install mds-account-invoice-xrechnung
Requires Requires
======== ========
- Tryton 6.8 - Tryton 7.0
Changes Changes
======= =======
*6.8.8 - 28.01.2025* *7.0.0 - 22.12.2023*
- fix: select 1st invoice-report (Mathias Behrle <mathiasb@m9s.biz>) - compatiblity to Tryton 7.0
*6.8.7 - 18.12.2024*
- optimize pdf-generate
*6.8.6 - 11.12.2024*
- re-create invoice-report if not pdf and zugferd-export
*6.8.5 - 10.12.2024*
- update tests for iban in xml-export
- add: export formats: factur-x, ZUGFeRD, XRechnung 2.3 + 3.0
*6.8.3 - 30.06.2023*
- compatiblity to Tryton 6.8
- code optimized

View file

@ -13,7 +13,6 @@ here = path.abspath(path.dirname(__file__))
MODULE = 'account_invoice_xrechnung' MODULE = 'account_invoice_xrechnung'
PREFIX = 'mds' PREFIX = 'mds'
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read() long_description = f.read()
@ -35,8 +34,8 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f:
modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]} modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]}
# tryton-version # tryton-version
major_version = 6 major_version = 7
minor_version = 8 minor_version = 0
requires = ['python-slugify', 'pypdf', 'factur-x'] requires = ['python-slugify', 'pypdf', 'factur-x']
for dep in info.get('depends', []): for dep in info.get('depends', []):
@ -86,6 +85,8 @@ setup(
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
], ],
keywords='tryton account invoice xrechnung edocument', keywords='tryton account invoice xrechnung edocument',

View file

@ -1,5 +1,5 @@
[tryton] [tryton]
version=6.8.8 version=7.0.0
depends: depends:
account_invoice account_invoice
bank bank

View file

@ -1 +1 @@
edocument_xrechnung;6.8.13;6.8.999;mds edocument_xrechnung;7.0.5;7.0.999;mds

View file

@ -125,7 +125,7 @@ class RunXRechnungReport(Wizard):
def do_export(self, action): def do_export(self, action):
""" run export """ run export
""" """
if self.start.state != 'posted': if self.start.state not in {'paid', 'posted'}:
raise UserError(gettext( raise UserError(gettext(
'account_invoice_xrechnung.msg_invoice_must_posted', 'account_invoice_xrechnung.msg_invoice_must_posted',
invname=self.start.invoice.rec_name)) invname=self.start.invoice.rec_name))