Fix name of class in calling super __register__ method

This commit is contained in:
Jes?s Mart?n Jim?nez 2016-07-05 15:28:28 +02:00
parent 615562ec18
commit 92acdc0fe8

View file

@ -163,7 +163,7 @@ class AnalyticAccountAccountRequired(ModelSQL):
new_table = 'analytic_acc_acc_required_acc_acc'
if TableHandler.table_exist(old_table):
TableHandler.table_rename(old_table, new_table)
super(ProductionConfigurationOperationType, cls).__register__(
super(AnalyticAccountAccountRequired, cls).__register__(
module_name)
@ -185,7 +185,7 @@ class AnalyticAccountAccountForbidden(ModelSQL):
new_table = 'analytic_acc_acc_forbidden_acc_acc'
if TableHandler.table_exist(old_table):
TableHandler.table_rename(old_table, new_table)
super(ProductionConfigurationOperationType, cls).__register__(
super(AnalyticAccountAccountForbidden, cls).__register__(
module_name)
@ -207,7 +207,7 @@ class AnalyticAccountAccountOptional(ModelSQL):
new_table = 'analytic_acc_acc_optional_acc_acc'
if TableHandler.table_exist(old_table):
TableHandler.table_rename(old_table, new_table)
super(ProductionConfigurationOperationType, cls).__register__(
super(AnalyticAccountAccountOptional, cls).__register__(
module_name)