From 0f3f287ddef2b47a4fee20dabc47934de3fb5e9c Mon Sep 17 00:00:00 2001 From: "GPA(OpenERP)" <> Date: Sat, 24 Oct 2009 18:29:29 +0530 Subject: [PATCH] [FIX] Account_analytic_analysis : Summary of Months calculation Corrected lp bug: https://launchpad.net/bugs/457188 fixed bzr revid: jvo@tinyerp.com-20091024125929-uj393p5fwae93hbb --- addons/account_analytic_analysis/account_analytic_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index e93bea7fa58..a272aed9ca2 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -614,7 +614,7 @@ class account_analytic_account_summary_month(osv.osv): for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(int(obj_id))[:-6])])]): if child_id != int(str(int(obj_id))[:-6]): - res[obj_id] += res.get(int(child_id * 1000000 + int(obj_id)), 0.0) + res[obj_id] += res.get(int(child_id * 1000000 + int(str(int(obj_id))[-6:])), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res