Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7d03ec08ad | ||
![]() |
bde969a880 |
3 changed files with 3 additions and 4 deletions
|
@ -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) 2025 Mathias Behrle <mathiasb@m9s.biz>
|
||||
|
||||
|
|
3
setup.py
3
setup.py
|
@ -13,7 +13,6 @@ here = path.abspath(path.dirname(__file__))
|
|||
MODULE = 'account_invoice_xrechnung'
|
||||
PREFIX = 'mds'
|
||||
|
||||
# Get the long description from the README file
|
||||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
@ -86,6 +85,8 @@ setup(
|
|||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
],
|
||||
|
||||
keywords='tryton account invoice xrechnung edocument',
|
||||
|
|
|
@ -125,7 +125,7 @@ class RunXRechnungReport(Wizard):
|
|||
def do_export(self, action):
|
||||
""" run export
|
||||
"""
|
||||
if self.start.state != 'posted':
|
||||
if self.start.state not in {'paid', 'posted'}:
|
||||
raise UserError(gettext(
|
||||
'account_invoice_xrechnung.msg_invoice_must_posted',
|
||||
invname=self.start.invoice.rec_name))
|
||||
|
|
Loading…
Reference in a new issue