Skip to content
Snippets Groups Projects
Commit e29a7b7b authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] account: correct v8 version of map_tax() method of account.fiscal.postion

parent c5b51769
No related branches found
No related tags found
No related merge requests found
......@@ -66,16 +66,16 @@ class account_fiscal_position(osv.osv):
result.add(t.id)
return list(result)
@api.v8
@api.v8 # noqa
def map_tax(self, taxes):
result = taxes.browse()
result = set()
for tax in taxes:
found = False
for t in self.tax_ids:
if t.tax_src_id == tax:
result |= t.tax_dest_id
found = True
if not found:
if t.tax_dest_id:
result |= t.tax_dest_id
break
else:
result |= tax
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment