"Tablehandler migration to 6.0 [SKIP CI]."

This commit is contained in:
Sergio Morillo 2021-06-09 00:39:20 +02:00
parent 9f8a009de6
commit f0393dcba0
1 changed files with 5 additions and 6 deletions

View File

@ -73,11 +73,10 @@ class ConfigurationSequence(metaclass=PoolMeta):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
exist = TableHandler.table_exist(cls._table)
table_h = cls.__table_handler__(module_name)
exist = table_h.table_exist(cls._table)
if exist:
table = TableHandler(cls, module_name)
exist &= table.column_exist('unit_load_sequence')
exist &= table_h.column_exist('unit_load_sequence')
super(ConfigurationSequence, cls).__register__(module_name)
@ -123,8 +122,8 @@ class ConfigurationULProductionType(ModelSQL, CompanyValueMixin):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
exist = TableHandler.table_exist(cls._table)
table_h = cls.__table_handler__(module_name)
exist = table_h.table_exist(cls._table)
super(ConfigurationULProductionType, cls).__register__(module_name)