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 ea0d53bd7c
commit fc7a757754
1 file changed
+1 -1
+1 -1
View File
@@ -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