From bbca952eac4235f6f5b0fa1a1ee690366ec4ac21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 12 Nov 2008 17:27:32 +0100 Subject: [PATCH] Fix wrong test for computed taxes in _on_change_lines_taxes without currency --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index ea2d10bc36..469d7d963b 100644 --- a/invoice.py +++ b/invoice.py @@ -549,7 +549,7 @@ class Invoice(OSV): res['tax_amount'] += tax.get('amount', Decimal('0.0')) else: if computed_taxes[key]['base'] - \ - tax.get('base', Decimal('0.0')) == Decimal('0.0'): + tax.get('base', Decimal('0.0')) != Decimal('0.0'): res['tax_amount'] += computed_taxes[key]['amount'] res['taxes'].setdefault('update', []) res['taxes']['update'].append({