From 353da26df6895b9e10162d61eaa383bc40b730da 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 aee621380d..ec45939925 100644 --- a/invoice.py +++ b/invoice.py @@ -2361,7 +2361,7 @@ class InvoiceReport(Report): and invoice.type in ('out_invoice', 'out_credit_note')): Invoice.write([Invoice(invoice.id)], { 'invoice_report_format': res[0], - 'invoice_report_cache': res[1], + 'invoice_report_cache': buffer(res[1]), }) return res