diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 5d8f7e4af4..bed85c0f50 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -1646,9 +1646,8 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): ''' InvoiceReport = Pool().get('account.invoice', type='report') for invoice in invoices: - if invoice.invoice_report_cache: - return - InvoiceReport.execute([invoice.id], {}) + if not invoice.invoice_report_cache: + InvoiceReport.execute([invoice.id], {}) def _credit(self, **values): '''