From 01484e20b62014f8245fb024b209533e68d9736e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 24 Oct 2012 23:34:48 +0200 Subject: [PATCH] records in Report.parse are not real instance issue2855 review586005 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 11a3ffb759..c8a112440e 100644 --- a/invoice.py +++ b/invoice.py @@ -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], })