records in Report.parse are not real instance

issue2855
review586005
(transplanted from efe344a0e9d8ffe6ce5326434f2b18b562696f92)
This commit is contained in:
Cédric Krier committed 2012-10-24 23:34:48 +02:00
1 parent e9f2dba748
commit d450aa916d
1 file changed
+1 -1
+1 -1
View File
@@ -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],
})