diff --git a/invoice.py b/invoice.py index f113e4a470..24abade017 100644 --- a/invoice.py +++ b/invoice.py @@ -1217,7 +1217,7 @@ class InvoiceLine(ModelSQL, ModelView): def init(self, cursor, module_name): super(InvoiceLine, self).init(cursor, module_name) - table = TableHandler(cursor, self._table, self._name, module_name) + table = TableHandler(cursor, self, module_name) # Migration from 1.0 invoice is no more required table.not_null_action('invoice', action='remove') diff --git a/payment_term.py b/payment_term.py index dda2451ff7..7e6a1a921d 100644 --- a/payment_term.py +++ b/payment_term.py @@ -160,7 +160,7 @@ class PaymentTermLine(ModelSQL, ModelView): def init(self, cursor, module_name): super(PaymentTermLine, self).init(cursor, module_name) - table = TableHandler(cursor, self._table, self._name, module_name) + table = TableHandler(cursor, self, module_name) # Migration from 1.0 percent change into percentage if table.column_exist('percent'):