From 21c2f76bcb3ed83e26e2a72a718d6a9b09777434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Mar 2015 19:27:31 +0100 Subject: [PATCH] Ensure lines in Line.reconcile is a list Line.reconcile can append lines to the parameter lines that's why it is duplicate but it must also ensure it is a list. issue4623 review9071002 --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 5ea5392ab3..377ec3dbac 100644 --- a/move.py +++ b/move.py @@ -1517,7 +1517,7 @@ class Line(ModelSQL, ModelView): cls.raise_user_error('already_reconciled', error_args=(line.move.number, line.id,)) - lines = lines[:] + lines = list(lines) reconcile_account = None reconcile_party = None amount = Decimal('0.0')