[REF/FIX] Account : Minor corrections related to _unit_compute_inv()

lp bug: https://launchpad.net/bugs/511198 fixed

bzr revid: jvo@tinyerp.com-20100122141746-efo23pejj51a4nw5
This commit is contained in:
Jay (Open ERP) 2010-01-22 19:47:46 +05:30
parent f14e638fa6
commit 6ba1955ac1
1 changed files with 2 additions and 2 deletions

View File

@ -1478,8 +1478,8 @@ class account_tax(osv.osv):
exec tax.python_compute_inv in localdict
amount = localdict['result']
elif tax.type=='balance':
data['amount'] = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0)
data['balance'] = cur_price_unit
amount = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0)
# data['balance'] = cur_price_unit
if tax.include_base_amount: