From f1d38b5844dc5ad40935e0b2d16f246329d418ae Mon Sep 17 00:00:00 2001 From: mtr Date: Mon, 31 Jan 2011 13:07:05 +0530 Subject: [PATCH] [IMP] account:placed else condition inside 'if sums.get(child.id, False):' bzr revid: mtr@mtr-20110131073705-2m6d54pjia4y1506 --- addons/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index e9b0c9e7905..6d4fe4eb98f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -304,8 +304,8 @@ class account_account(osv.osv): if child.company_id.currency_id.id == current.company_id.currency_id.id: if sums.get(child.id, False): sums[current.id][fn] += sums[child.id][fn] - else: - sums[current.id][fn] += currency_obj.compute(cr, uid, child.company_id.currency_id.id, current.company_id.currency_id.id, sums[child.id][fn], context=context) + else: + sums[current.id][fn] += currency_obj.compute(cr, uid, child.company_id.currency_id.id, current.company_id.currency_id.id, sums[child.id][fn], context=context) res = {} null_result = dict((fn, 0.0) for fn in field_names) for id in ids: