records in Report.parse are not real instance

issue2855
review586005
This commit is contained in:
Cédric Krier committed 2012-10-24 23:34:48 +02:00
1 parent b4d9f92414
commit 01484e20b6
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],
})