From 206835a0834629bece0d4e64675bfd16f4b6cd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 6 Sep 2013 22:33:55 +0200 Subject: [PATCH] Migration to python-sql review1001002 --- product.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index c31e57fc1f..d56a56b32a 100644 --- a/product.py +++ b/product.py @@ -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)