Merge branch 'main' into 5.0

This commit is contained in:
Frederik Jaeckel 2025-02-11 13:56:47 +01:00
commit aa83ef23f6

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