From abd4f643df6c9773bb1fd091164c76a0a1209d02 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 --- currency.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/currency.py b/currency.py index 1e54229256..4dc21c24f7 100644 --- a/currency.py +++ b/currency.py @@ -7,7 +7,6 @@ from decimal import Decimal, ROUND_HALF_EVEN from sql import Window from sql.functions import NthValue -from trytond import backend from trytond.model import ( ModelView, ModelSQL, DeactivableMixin, fields, Unique, Check) from trytond.tools import datetime_strftime @@ -54,11 +53,9 @@ class Currency(DeactivableMixin, ModelSQL, ModelView): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') - super(Currency, cls).__register__(module_name) - table_h = TableHandler(cls, module_name) + table_h = cls.__table_handler__(module_name) # Migration from 4.6: removal of monetary for col in [