Fix wrong test for computed taxes in _on_change_lines_taxes without currency

This commit is contained in:
Cédric Krier committed 2008-11-12 17:27:32 +01:00
1 parent bbf1aec3a5
commit bbca952eac
1 file changed
+1 -1
+1 -1
View File
@@ -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({