Use the new TableHandler interface
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
+1
-1
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user