Migration to python-sql

review1001002
This commit is contained in:
Cédric Krier committed 2013-09-06 22:33:55 +02:00
1 parent 71a80c40fa
commit 206835a083
1 file changed
+3 -1
+3 -1
View File
@@ -2,7 +2,7 @@
#this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, fields
from trytond.pyson import Eval, Or
from trytond.backend import TableHandler
from trytond import backend
from trytond.transaction import Transaction
from trytond.pool import PoolMeta
@@ -125,6 +125,7 @@ class CategoryCustomerTax(ModelSQL):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
# Migration from 1.6 product renamed into category
table = TableHandler(cursor, cls)
@@ -146,6 +147,7 @@ class CategorySupplierTax(ModelSQL):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
# Migration from 1.6 product renamed into category
table = TableHandler(cursor, cls)