Merge branch 'main' into 6.0

This commit is contained in:
Frederik Jaeckel 2025-02-11 13:48:48 +01:00
commit 1280c57e05

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