changeset e81bfd44e400 in modules/account_cash_rounding:6.0
details:
https://hg.tryton.org/modules/account_cash_rounding?cmd=changeset&node=e81bfd44e400
description:
Add the rounding line only if created and fill the second currency
issue10916
review389191002
(grafted from 559e0b146ac8e80c997e4ab54f799ae98fbb7f76)
diffstat:
account.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r 004763ad793d -r e81bfd44e400 account.py
--- a/account.py Sun Oct 31 10:30:52 2021 +0100
+++ b/account.py Sun Oct 31 10:31:41 2021 +0100
@@ -194,7 +194,7 @@
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