Use direct access to backend classes

issue8836
review258421002
This commit is contained in:
Nicolas Évrard committed 2019-12-06 17:33:47 +01:00
1 parent 04c3e98e0f
commit a27d1e7c52
3 files changed
+3 -6

No files matched your search

+1 -2
View File
@@ -56,8 +56,7 @@ class PurchaseConfigPurchaseDropLocation(ModelSQL, ValueMixin):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
exist = TableHandler.table_exist(cls._table)
exist = backend.TableHandler.table_exist(cls._table)
super(PurchaseConfigPurchaseDropLocation, cls).__register__(
module_name)
+1 -2
View File
@@ -33,8 +33,7 @@ class SaleConfigSaleDropLocation(ModelSQL, ValueMixin):
@classmethod
def __register__(cls, module_name):
TableHandler = backend.get('TableHandler')
exist = TableHandler.table_exist(cls._table)
exist = backend.TableHandler.table_exist(cls._table)
super(SaleConfigSaleDropLocation, cls).__register__(
module_name)
+1 -2
View File
@@ -59,8 +59,7 @@ class ConfigurationSequence(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('shipment_drop_sequence')