changeset 4d0644ce9934 in modules/account_invoice:5.4
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=4d0644ce9934
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
(grafted from a34e1c79a2fe399f0a2d9588171a14379eb677f5)
diffstat:
invoice.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8794a85c4a1a -r 4d0644ce9934 invoice.py
--- a/invoice.py Sun Aug 02 17:49:22 2020 +0200
+++ b/invoice.py Fri Oct 09 22:01:50 2020 +0200
@@ -497,7 +497,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 [])