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

issue10916
review389191002
This commit is contained in:
Cédric Krier committed 2021-10-31 10:31:41 +01:00
1 parent 88c21c2fea
commit e265f854ee
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