projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b5176
)
[FIX] account: correct v8 version of map_tax() method of account.fiscal.postion
author
Christophe Simonis
<chs@odoo.com>
Mon, 4 Aug 2014 17:41:43 +0000
(19:41 +0200)
committer
Christophe Simonis
<chs@odoo.com>
Mon, 4 Aug 2014 17:41:43 +0000
(19:41 +0200)
addons/account/partner.py
patch
|
blob
|
history
diff --git
a/addons/account/partner.py
b/addons/account/partner.py
index
9c8220c
..
289a87f
100644
(file)
--- a/
addons/account/partner.py
+++ b/
addons/account/partner.py
@@
-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