Follow PEP-0249 for Transaction and backends

issue4949
This commit is contained in:
Cédric Krier committed 2016-03-04 09:42:24 +01:00
1 parent 1184a6a164
commit 41c9de5bd2
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ class Agent(ModelSQL, ModelView):
pool = Pool()
Commission = pool.get('commission')
commission = Commission.__table__()
cursor = Transaction().cursor
cursor = Transaction().connection.cursor()
ids = [a.id for a in agents]
amounts = dict.fromkeys(ids, None)