Do not skip other invoices when printing an invoice that has a cache
Closes #13968 (grafted from ad22b11036a0227c9274b8525e026c60ae1e6d15) --HG-- branch : 7.0
This commit is contained in:
1 parent
fdab2269a1
commit
05a8dc26fe
1 file changed
+2
-3
@@ -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):
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user