Follow PEP-0249 for Transaction and backends
issue4949 review19781002
This commit is contained in:
1 parent
346ac96f00
commit
914dc164e7
1 file changed
+1
-3
+1
-3
@@ -5,7 +5,6 @@ from sql.conditionals import Case
|
||||
|
||||
from trytond.model import ModelView, ModelSQL, fields
|
||||
from trytond.pyson import If, Eval, Bool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond import backend
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
@@ -39,8 +38,7 @@ class ProductLocation(ModelSQL, ModelView):
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
TableHandler = backend.get('TableHandler')
|
||||
cursor = Transaction().cursor
|
||||
table = TableHandler(cursor, cls, module_name)
|
||||
table = TableHandler(cls, module_name)
|
||||
|
||||
super(ProductLocation, cls).__register__(module_name)
|
||||
|
||||
|
||||
Reference in new issue
Block a user