From 0dd86231eceeec68045a9608f1cd9192bb0fcc38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 3 Mar 2016 21:55:50 +0100 Subject: [PATCH] Follow PEP-0249 for Transaction and backends issue4949 review19781002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 4cedadf8f9..2ddd5ebf9c 100644 --- a/stock.py +++ b/stock.py @@ -303,7 +303,7 @@ class Period: Lot = pool.get('stock.lot') Date = pool.get('ir.date') Lang = pool.get('ir.lang') - cursor = Transaction().cursor + cursor = Transaction().connection.cursor() move = Move.__table__() lot = Lot.__table__()