Remove migration before 3.0

issue6470
review52421002
This commit is contained in:
Cédric Krier committed 2018-08-09 20:43:51 +02:00
1 parent e10653ca62
commit 3bca19f3a5
1 file changed
-20
-20
View File
@@ -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'