diff --git a/wizard_runreport.py b/wizard_runreport.py index 708954c..d8d5c5e 100644 --- a/wizard_runreport.py +++ b/wizard_runreport.py @@ -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))