From 684aed64201b5acaec85758b78db70ab1204bb9a Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Wed, 7 Sep 2011 11:02:46 +0530 Subject: [PATCH] [FIX] account: Fixed error when a record contains type='Account Report' and then print the Financial report gives recursion error. bzr revid: uco@tinyerp.com-20110907053246-z0fclnw84s102r2f --- addons/account/account.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 7ee66b6d02c..8900da4719c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2650,7 +2650,10 @@ class account_low_level_report(osv.osv): balance += a.balance elif report.type == 'account_report' and report.account_report_id: # it's the amount of the linked report - balance = report.account_report_id.balance + res2 = self._get_balance(cr, uid, [report.account_report_id.id], 'balance', False, context=context) + res_all.update(res2) + for key, value in res2.items(): + balance += value elif report.type == 'sum': # it's the sum of balance of the children of this account.report #for child in report.children_ids: