[FIX] analytic: quantity shouldn't be computed with exchange rate
lp bug: https://launchpad.net/bugs/704426 fixed bzr revid: qdp-launchpad@tinyerp.com-20110118173153-ylxkzzwpvigx8fpz
This commit is contained in:
parent
cb5ebabbf6
commit
e7a2997093
|
@ -35,7 +35,7 @@ class account_analytic_account(osv.osv):
|
|||
for son in account.child_ids:
|
||||
res = recursive_computation(son.id, res)
|
||||
for field in field_names:
|
||||
if account.currency_id.id == son.currency_id.id:
|
||||
if account.currency_id.id == son.currency_id.id or field=='quantity':
|
||||
res[account.id][field] += res[son.id][field]
|
||||
else:
|
||||
res[account.id][field] += currency_obj.compute(cr, uid, son.currency_id.id, account.currency_id.id, res[son.id][field], context=context)
|
||||
|
|
Loading…
Reference in New Issue