changeset ef57bd7b12ea in modules/customs:default
details: https://hg.tryton.org/modules/customs?cmd=changeset;node=ef57bd7b12ea
description:
Use direct access to backend classes
issue8836
review258421002
diffstat:
product.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 665c140396a2 -r ef57bd7b12ea product.py
--- a/product.py Wed Dec 04 11:09:35 2019 +0100
+++ b/product.py Fri Dec 06 17:33:46 2019 +0100
@@ -110,14 +110,13 @@
@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)