"Tablehandler migration to 6.0 [SKIP CI]."
This commit is contained in:
parent
9f8a009de6
commit
f0393dcba0
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue