[MERGE] [FIX] account: when computing a tax with include_base_amount enabled, include the child tax amounts into the sum for the next tax
This commit is contained in:
commit
29565d96fe
|
@ -2067,6 +2067,8 @@ class account_tax(osv.osv):
|
|||
amount = amount2
|
||||
child_tax = self._unit_compute(cr, uid, tax.child_ids, amount, product, partner, quantity)
|
||||
res.extend(child_tax)
|
||||
for child in child_tax:
|
||||
amount2 += child.get('amount', 0.0)
|
||||
if tax.child_depend:
|
||||
for r in res:
|
||||
for name in ('base','ref_base'):
|
||||
|
|
Loading…
Reference in New Issue