Use direct access to backend classes

issue8836
review258421002
This commit is contained in:
Nicolas Évrard committed 2019-12-06 17:33:46 +01:00
1 parent cd07a67109
commit cd95da3b30
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -40,8 +40,7 @@ class _ConfigurationValue(ModelSQL):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
exist = TableHandler.table_exist(cls._table)
exist = backend.TableHandler.table_exist(cls._table)
super(_ConfigurationValue, cls).__register__(module_name)
+1 -2
View File
@@ -278,9 +278,8 @@ class PartyLang(ModelSQL, ValueMixin):
def __register__(cls, module_name):
pool = Pool()
Party = pool.get('party.party')
TableHandler = backend.get('TableHandler')
cursor = Transaction().connection.cursor()
exist = TableHandler.table_exist(cls._table)
exist = backend.TableHandler.table_exist(cls._table)
table = cls.__table__()
party = Party.__table__()