Allow the export of paid invoices.

This commit is contained in:
Mathias Behrle 2025-02-10 12:21:01 +01:00
parent c42ad82ff1
commit b5ce8582aa

View file

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