From 2c53ebd7c6016f3fa670480cd2e132fdccf21d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 3 Mar 2016 21:55:19 +0100 Subject: [PATCH] Follow PEP-0249 for Transaction and backends issue4949 review19781002 --- work.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/work.py b/work.py index ec2b6bb390..0f10634eb9 100644 --- a/work.py +++ b/work.py @@ -59,7 +59,7 @@ class Work: Line = pool.get('timesheet.line') Work = pool.get('timesheet.work') transaction = Transaction() - cursor = transaction.cursor + cursor = transaction.connection.cursor() costs = dict.fromkeys([w.id for w in works], 0) @@ -104,7 +104,7 @@ class Work: Invoice = pool.get('account.invoice') Company = pool.get('company.company') - cursor = Transaction().cursor + cursor = Transaction().connection.cursor() table = cls.__table__() purchase_line = PurchaseLine.__table__() invoice_line = InvoiceLine.__table__()