changeset f155f706d712 in modules/account_invoice:5.6
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=f155f706d712
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 91b22e48ecd4 -r f155f706d712 invoice.py
--- a/invoice.py Sun Aug 02 17:49:02 2020 +0200
+++ b/invoice.py Fri Oct 09 22:01:50 2020 +0200
@@ -489,7 +489,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 [])