Reviewers: ,
Please review this at http://codereview.tryton.org/210004/ Affected files: M invoice.py Index: invoice.py =================================================================== --- a/invoice.py +++ b/invoice.py @@ -193,17 +193,17 @@ class Invoice(ModelWorkflow, ModelSQL, M cursor.execute('SELECT id, invoice_report ' 'FROM "' + self._table + '"') for invoice_id, report in cursor.fetchall(): if report: report = buffer(base64.decodestring(str(report))) cursor.execute('UPDATE "' + self._table + '" ' 'SET invoice_report_cache = %s ' 'WHERE id = %s', (report, invoice_id)) - table.drop_column('invoice_report') + table.drop_column('invoice_report') # Add index on create_date table.index_action('create_date', action='add') def default_type(self): return Transaction().context.get('type', 'out_invoice') def default_state(self): -- [email protected] mailing list
