From 3bca19f3a544623c187b547d131d8d2f56e20372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 9 Aug 2018 20:43:51 +0200 Subject: [PATCH] Remove migration before 3.0 issue6470 review52421002 --- product.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/product.py b/product.py index 0613c2a4a5..d9aaf0c284 100644 --- a/product.py +++ b/product.py @@ -271,16 +271,6 @@ class CategoryCustomerTax(ModelSQL): tax = fields.Many2One('account.tax', 'Tax', ondelete='RESTRICT', required=True) - @classmethod - def __register__(cls, module_name): - # Migration from 1.6 product renamed into category - table = cls.__table_handler__(module_name) - if table.column_exist('product'): - table.index_action('product', action='remove') - table.drop_fk('product') - table.column_rename('product', 'category') - super(CategoryCustomerTax, cls).__register__(module_name) - class CategorySupplierTax(ModelSQL): 'Category - Supplier Tax' @@ -291,16 +281,6 @@ class CategorySupplierTax(ModelSQL): tax = fields.Many2One('account.tax', 'Tax', ondelete='RESTRICT', required=True) - @classmethod - def __register__(cls, module_name): - # Migration from 1.6 product renamed into category - table = cls.__table_handler__(module_name) - if table.column_exist('product'): - table.index_action('product', action='remove') - table.drop_fk('product') - table.column_rename('product', 'category') - super(CategorySupplierTax, cls).__register__(module_name) - class Template(CompanyMultiValueMixin, metaclass=PoolMeta): __name__ = 'product.template'