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
3 changed files with 3 additions and 4 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

@ -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()
@ -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

@ -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))