"Tablehandler migration to 6.0 [SKIP CI]."

This commit is contained in:
Sergio Morillo 2021-06-09 00:41:43 +02:00
parent e07003414c
commit 998a72ec03
1 changed files with 5 additions and 6 deletions

View File

@ -49,11 +49,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('edocument_sequence')
exist &= table_h.column_exist('edocument_sequence')
super(ConfigurationSequence, cls).__register__(module_name)
@ -86,8 +85,8 @@ class ConfigurationEDIOutputPath(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(ConfigurationEDIOutputPath, cls).__register__(module_name)