From c87417397430fbca8b95e2fe90155d5645a57afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 3 Mar 2016 21:55:15 +0100 Subject: [PATCH] Follow PEP-0249 for Transaction and backends issue4949 review19781002 --- work.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/work.py b/work.py index cf8b05fd9b..7139870d54 100644 --- a/work.py +++ b/work.py @@ -205,7 +205,7 @@ class Work: Company = pool.get('company.company') Currency = pool.get('currency.currency') - cursor = Transaction().cursor + cursor = Transaction().connection.cursor() table = cls.__table__() progress = Progress.__table__() invoice_line = InvoiceLine.__table__() @@ -257,7 +257,7 @@ class Work: Company = pool.get('company.company') Currency = pool.get('currency.currency') - cursor = Transaction().cursor + cursor = Transaction().connection.cursor() table = cls.__table__() timesheet_work = TimesheetWork.__table__() timesheet_line = TimesheetLine.__table__() @@ -303,7 +303,7 @@ class Work: def _get_duration_timesheet(works, invoiced): pool = Pool() TimesheetLine = pool.get('timesheet.line') - cursor = Transaction().cursor + cursor = Transaction().connection.cursor() line = TimesheetLine.__table__() durations = {}