Add the rounding line only if created and fill the second currency

issue10916
review389191002
(grafted from 559e0b146ac8e80c997e4ab54f799ae98fbb7f76)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-10-31 10:31:41 +01:00
1 parent c2f2679173
commit ae83d11745
1 file changed
+3 -3
+3 -3
View File
@@ -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