Follow PEP-0249 for Transaction and backends

This commit is contained in:
jmartin 2016-03-10 13:35:17 +01:00
parent 2a4258236a
commit 21a4a49343
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ class Sale:
pool = Pool()
User = pool.get('res.user')
cursor = Transaction().cursor
cursor = Transaction().connection.cursor()
TableHandler = backend.get('TableHandler')
table = TableHandler(cursor, cls, module_name)
table = TableHandler(cls, module_name)
super(Sale, cls).__register__(module_name)