records in Report.parse are not real instance
issue2855 review586005
This commit is contained in:
1 parent
b4d9f92414
commit
01484e20b6
1 file changed
+1
-1
+1
-1
@@ -2123,7 +2123,7 @@ class InvoiceReport(Report):
|
||||
# invoice_report_cache there was an error somewhere. So we save it now
|
||||
# in invoice_report_cache
|
||||
if invoice.state in ('open', 'paid'):
|
||||
Invoice.write([invoice], {
|
||||
Invoice.write([Invoice(invoice.id)], {
|
||||
'invoice_report_format': res[0],
|
||||
'invoice_report_cache': res[1],
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user