[FIX] account: indendation error in 82588fa
The original tax should not be included if it was found in the tax mapping, even if it has no replacement. Fixes #2261 (hopefully, this time)
This commit is contained in:
parent
8e637bac92
commit
92c7874eb8
|
@ -82,8 +82,8 @@ class account_fiscal_position(osv.osv):
|
||||||
tax_count = 0
|
tax_count = 0
|
||||||
for t in self.tax_ids:
|
for t in self.tax_ids:
|
||||||
if t.tax_src_id == tax:
|
if t.tax_src_id == tax:
|
||||||
|
tax_count += 1
|
||||||
if t.tax_dest_id:
|
if t.tax_dest_id:
|
||||||
tax_count += 1
|
|
||||||
result |= t.tax_dest_id
|
result |= t.tax_dest_id
|
||||||
if not tax_count:
|
if not tax_count:
|
||||||
result |= tax
|
result |= tax
|
||||||
|
|
Loading…
Reference in New Issue