Compare commits

...

1 commit

Author SHA1 Message Date
Mathias Behrle
78367854f7 Allow the export of paid invoices. 2025-02-11 09:28:59 +01:00

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