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
This commit is contained in:
Cédric Krier committed 2015-03-09 19:27:31 +01:00
1 parent db83b9de77
commit 21c2f76bcb
1 file changed
+1 -1
+1 -1
View File
@@ -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')