Use direct access to backend classes
issue8836 review258421002
This commit is contained in:
1 parent
8bb851f8f8
commit
5b7e67ce7f
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -77,8 +77,7 @@ class ConfigurationAssetSequence(ModelSQL, CompanyValueMixin):
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
TableHandler = backend.get('TableHandler')
|
||||
exist = TableHandler.table_exist(cls._table)
|
||||
exist = backend.TableHandler.table_exist(cls._table)
|
||||
|
||||
super(ConfigurationAssetSequence, cls).__register__(module_name)
|
||||
|
||||
|
||||
+1
-2
@@ -73,8 +73,7 @@ class CategoryAccount(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
TableHandler = backend.get('TableHandler')
|
||||
exist = TableHandler.table_exist(cls._table)
|
||||
exist = backend.TableHandler.table_exist(cls._table)
|
||||
if exist:
|
||||
table = cls.__table_handler__(module_name)
|
||||
exist &= (table.column_exist('account_depreciation')
|
||||
|
||||
Reference in new issue
Block a user