[FIX] Account_analytic_analysis : Summary of Months calculation Corrected

lp bug: https://launchpad.net/bugs/457188 fixed

bzr revid: jvo@tinyerp.com-20091024125929-uj393p5fwae93hbb
This commit is contained in:
GPA(OpenERP)
2009-10-24 18:29:29 +05:30
committed by Jay (Open ERP)
parent 85bdfc4a28
commit 0f3f287dde
@@ -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