Fix tax include in base amount for child taxes
bzr revid: ced-88fce440098219103bb7bcdc72fd4ee7b67963b0
This commit is contained in:
parent
4643654e65
commit
642e0930f8
|
@ -1014,12 +1014,9 @@ class account_tax(osv.osv):
|
|||
if len(tax.child_ids):
|
||||
if tax.child_depend:
|
||||
del res[-1]
|
||||
amount = amount2
|
||||
else:
|
||||
amount = amount2
|
||||
for t in tax.child_ids:
|
||||
parent_tax = self._unit_compute(cr, uid, [t], amount, address_id)
|
||||
res.extend(parent_tax)
|
||||
amount = amount2
|
||||
child_tax = self._unit_compute(cr, uid, tax.child_ids, amount, address_id, product, partner)
|
||||
res.extend(child_tax)
|
||||
if tax.include_base_amount:
|
||||
cur_price_unit+=amount2
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue