From e3f4f577bcc4d87ce67dfb46534feb2066b81d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 24 Jul 2018 22:01:07 +0200 Subject: [PATCH] Add __table_handler__ to ModelSQL issue7581 review48531002 --- dunning.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dunning.py b/dunning.py index af4b33765a..851f832f4a 100644 --- a/dunning.py +++ b/dunning.py @@ -8,7 +8,6 @@ from sql import Null from trytond.model import Model, ModelView, ModelSQL, fields, Unique, \ sequence_ordered from trytond.pyson import If, Eval -from trytond import backend from trytond.transaction import Transaction from trytond.wizard import Wizard, StateView, StateAction, StateTransition, \ Button @@ -37,9 +36,8 @@ class Level(sequence_ordered(), ModelSQL, ModelView): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') cursor = Transaction().connection.cursor() - table = TableHandler(cls, module_name) + table = cls.__table_handler__(module_name) sql_table = cls.__table__() super(Level, cls).__register__(module_name)