From cfa0f7ed45bf5b9aae78dbe32a6c0e83f79e40d6 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 --- product.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product.py b/product.py index ee101a0969..0613c2a4a5 100644 --- a/product.py +++ b/product.py @@ -273,9 +273,8 @@ class CategoryCustomerTax(ModelSQL): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') # Migration from 1.6 product renamed into category - table = TableHandler(cls) + table = cls.__table_handler__(module_name) if table.column_exist('product'): table.index_action('product', action='remove') table.drop_fk('product') @@ -294,9 +293,8 @@ class CategorySupplierTax(ModelSQL): @classmethod def __register__(cls, module_name): - TableHandler = backend.get('TableHandler') # Migration from 1.6 product renamed into category - table = TableHandler(cls) + table = cls.__table_handler__(module_name) if table.column_exist('product'): table.index_action('product', action='remove') table.drop_fk('product')