From e45a89cda4dd27f162d02190208e68c886e42268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 7 May 2022 11:35:14 +0200 Subject: [PATCH] Use singleton for TableHandler issue11301 review366861002 --- product.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product.py b/product.py index 84a347ae5a..0d3e89b0ab 100644 --- a/product.py +++ b/product.py @@ -1,6 +1,5 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -from trytond import backend from trytond.model import ModelSQL, ModelView, fields, sequence_ordered from trytond.pool import Pool, PoolMeta from trytond.pyson import Bool, Eval, Or @@ -118,7 +117,7 @@ class Template(metaclass=PoolMeta): sql_table = cls.__table__() category = Category.__table__() - table = backend.TableHandler(cls, module_name) + table = cls.__table_handler__(module_name) category_exists = table.column_exist('category') super(Template, cls).__register__(module_name)