Fix wrong test for computed taxes in _on_change_lines_taxes without currency
This commit is contained in:
1 parent
bbf1aec3a5
commit
bbca952eac
1 file changed
+1
-1
+1
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user