Follow PEP-0249 for Transaction and backends

issue4949
review19781002
This commit is contained in:
Nicolas Évrard
2016-03-03 21:55:08 +01:00
parent 0bd789ccbb
commit 22e249fa1d
+1 -2
View File
@@ -95,8 +95,7 @@ class PriceListLine(ModelSQL, ModelView, MatchMixin):
@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(PriceListLine, cls).__register__(module_name)