From eda49bec9bbe0b4ace123e39bf718b7dd31e0163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Sep 2018 10:08:22 +0200 Subject: [PATCH] Do not concatenate map with list In Python3, map does not return anymore a list. issue7675 review49551002 --- statement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statement.py b/statement.py index 1a41724921..d4a4536503 100644 --- a/statement.py +++ b/statement.py @@ -1064,7 +1064,8 @@ class ReconcileStatement(Wizard): pool = Pool() Statement = pool.get('account.statement') statements = Statement.browse(Transaction().context['active_ids']) - lines = sum((map(int, s.lines_to_reconcile) for s in statements), []) + lines = sum(([int(l) for l in s.lines_to_reconcile] + for s in statements), []) return action, { 'model': 'account.move.line', 'ids': lines,