[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:
parent
f14e638fa6
commit
6ba1955ac1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue