From 642e0930f81f959abdd81787634c291dad40cc1f Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 16 Aug 2007 06:57:29 +0000 Subject: [PATCH] Fix tax include in base amount for child taxes bzr revid: ced-88fce440098219103bb7bcdc72fd4ee7b67963b0 --- addons/account/account.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 862118e5f9f..21c5cca162f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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