changeset af9ff420cf63 in modules/account:5.4 details: https://hg.tryton.org/modules/account?cmd=changeset;node=af9ff420cf63 description: Avoid shadowing the loop variable
review284281003 (grafted from d6e063a8c00b0372cf6dbe2d172811b6143e2d32) diffstat: move.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diffs (20 lines): diff -r 15a9daf4cd52 -r af9ff420cf63 move.py --- a/move.py Fri Mar 06 11:21:30 2020 +0100 +++ b/move.py Fri Mar 06 11:27:10 2020 +0100 @@ -1941,11 +1941,11 @@ maturity_dates[line.account], line.maturity_date) else: maturity_dates[line.account] = line.maturity_date - line = self._counterpart_line(line) - accounts[line.account] += line.debit - line.credit - if line.amount_second_currency: - amount_second_currency += line.amount_second_currency - counterpart_lines.append(line) + cline = self._counterpart_line(line) + accounts[cline.account] += cline.debit - cline.credit + if cline.amount_second_currency: + amount_second_currency += cline.amount_second_currency + counterpart_lines.append(cline) move.lines = counterpart_lines balance_line = None