Format report field to buffer type for migration
issue2354 review213002
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ class Invoice(ModelWorkflow, ModelSQL, ModelView):
|
||||
'FROM "' + self._table + '"')
|
||||
for invoice_id, report in cursor.fetchall():
|
||||
if report:
|
||||
report = base64.decodestring(str(report))
|
||||
report = buffer(base64.decodestring(str(report)))
|
||||
cursor.execute('UPDATE "' + self._table + '" '
|
||||
'SET invoice_report_cache = %s '
|
||||
'WHERE id = %s', (report, invoice_id))
|
||||
|
||||
Reference in New Issue
Block a user