[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:
qdp-launchpad@tinyerp.com 2011-01-18 18:31:53 +01:00
parent cb5ebabbf6
commit e7a2997093
1 changed files with 1 additions and 1 deletions

View File

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