changeset 5eee99471379 in modules/account_cash_rounding:5.8
details: 
https://hg.tryton.org/modules/account_cash_rounding?cmd=changeset&node=5eee99471379
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 86b39f02069e -r 5eee99471379 account.py
--- a/account.py        Sun Oct 31 10:30:52 2021 +0100
+++ b/account.py        Sun Oct 31 10:31:41 2021 +0100
@@ -179,7 +179,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

Reply via email to