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)
This commit is contained in:
Cédric Krier committed 2013-11-28 23:09:22 +01:00
1 parent da8200cb3c
commit 353da26df6
1 file changed
+1 -1
+1 -1
View File
@@ -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