From fc7a757754389b60675b02fd7369d7ce4d2464bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 28 Nov 2013 23:09:22 +0100 Subject: [PATCH] Store report cache using buffer SQLite doesn't detect the binary even if stored in BLOB if the type is not buffer. issue2704 review1941002 (transplanted from 3b77f743131cb946fbecd50bc49cb418c67d584e) --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index ead258f12a..3d5d993b36 100644 --- a/invoice.py +++ b/invoice.py @@ -2209,7 +2209,7 @@ class InvoiceReport(Report): if invoice.state in ('open', 'paid'): invoice_obj.write(invoice.id, { 'invoice_report_format': res[0], - 'invoice_report_cache': res[1], + 'invoice_report_cache': buffer(res[1]), }) return res