"Tablehandler migration to 6.0 [SKIP CI]."
This commit is contained in:
parent
e07003414c
commit
998a72ec03
11
stock.py
11
stock.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue