Allow the export of paid invoices.

This commit is contained in:
Mathias Behrle 2025-02-10 12:21:01 +01:00 committed by Frederik Jaeckel
parent 4b0fbb1580
commit bde969a880

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