From e265f854ee3cd284336fa47b493fc85743bf820c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 31 Oct 2021 10:31:41 +0100 Subject: [PATCH] Add the rounding line only if created and fill the second currency issue10916 review389191002 --- account.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account.py b/account.py index d7654b29f1..c7d55e1584 100644 --- a/account.py +++ b/account.py @@ -194,7 +194,7 @@ class Invoice(metaclass=PoolMeta): if total_currency: line.amount_second_currency = total_currency line.second_currency = second_currency - lines = list(move.lines) - lines.append(line) - move.lines = lines + lines = list(move.lines) + lines.append(line) + move.lines = lines return move