Do not concatenate map with list

In Python3, map does not return anymore a list.

issue7675
review49551002
This commit is contained in:
Cédric Krier committed 2018-09-09 10:08:22 +02:00
1 parent f8890a83b7
commit eda49bec9b
1 file changed
+2 -1
+2 -1
View File
@@ -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,