[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:
Martin Trigaux 2014-05-14 13:02:01 +02:00
commit 29565d96fe
1 changed files with 2 additions and 0 deletions

View File

@ -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'):