changeset a34e1c79a2fe in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=a34e1c79a2fe
description:
        Update taxes only if base changed when currency is empty

        The test is_zero is inverted when there is no currency defined.

        issue9555
        review318111003
diffstat:

 invoice.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1f9ce6dda52c -r a34e1c79a2fe invoice.py
--- a/invoice.py        Fri Oct 09 19:09:05 2020 +0200
+++ b/invoice.py        Fri Oct 09 22:01:50 2020 +0200
@@ -495,7 +495,7 @@
             if self.currency:
                 return self.currency.is_zero(amount)
             else:
-                return amount != Decimal('0.0')
+                return amount == Decimal('0.0')
 
         tax_keys = []
         taxes = list(self.taxes or [])

Reply via email to