Use direct access to backend classes
issue8836 review258421002
This commit is contained in:
+1
-2
@@ -110,14 +110,13 @@ class Template(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
TableHandler = backend.get('TableHandler')
|
||||
cursor = Transaction().connection.cursor()
|
||||
pool = Pool()
|
||||
Category = pool.get('product.category')
|
||||
sql_table = cls.__table__()
|
||||
category = Category.__table__()
|
||||
|
||||
table = TableHandler(cls, module_name)
|
||||
table = backend.TableHandler(cls, module_name)
|
||||
category_exists = table.column_exist('category')
|
||||
|
||||
super(Template, cls).__register__(module_name)
|
||||
|
||||
Reference in New Issue
Block a user