[FIX] account, financial report printing: recursion problem when report.type=='accuont_report'

bzr revid: qdp-launchpad@openerp.com-20110919140655-kfdfcmm4u2gdf8gg
This commit is contained in:
Quentin (OpenERP) 2011-09-19 16:06:55 +02:00
commit 5357fbe00f
1 changed files with 4 additions and 1 deletions

View File

@ -2650,7 +2650,10 @@ class account_financial_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: