From ad0189bb56acac0dcae9d4e94b6c5d3772c8d03c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 1 Jun 2015 22:47:08 +0200 Subject: [PATCH] Avoid circular import between Transaction and tools issue4724 review12161002 --- trytond/tools/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/tools/misc.py b/trytond/tools/misc.py index 1951bd27d1..16f65fa495 100644 --- a/trytond/tools/misc.py +++ b/trytond/tools/misc.py @@ -19,7 +19,6 @@ from sql.operators import Or from trytond.const import OPERATORS from trytond.config import config, parse_uri -from trytond.transaction import Transaction def find_in_path(name): @@ -370,6 +369,7 @@ def reduce_domain(domain): def grouped_slice(records, count=None): 'Grouped slice' + from trytond.transaction import Transaction if count is None: count = Transaction().cursor.IN_MAX for i in xrange(0, len(records), count):