Use the new TableHandler interface

This commit is contained in:
Cédric Krier
2009-03-17 22:39:26 +01:00
parent 18547a6f25
commit ea548a97ad
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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'):