From 8c4bdbbfa9a2d75dab0d7015e56f2f9ff6ec1177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 6 Dec 2019 17:33:46 +0100 Subject: [PATCH] Use direct access to backend classes issue8836 review258421002 --- product.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product.py b/product.py index 152b0a4eb6..236fc9c8df 100644 --- a/product.py +++ b/product.py @@ -110,14 +110,13 @@ class Template(metaclass=PoolMeta): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') cursor = Transaction().connection.cursor() pool = Pool() Category = pool.get('product.category') sql_table = cls.__table__() category = Category.__table__() - table = TableHandler(cls, module_name) + table = backend.TableHandler(cls, module_name) category_exists = table.column_exist('category') super(Template, cls).__register__(module_name)