From a2cf3cc997951fe2c92a117a80c47858a1c0cb2c Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Thu, 20 Jun 2013 12:40:19 -0530 Subject: [PATCH] [FIX] Wrong Init values for view accounts --- account_financial_report/report/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index 1d8f0c47..077169d9 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -473,7 +473,7 @@ class account_balance(report_sxw.rml_parse): #~ Not black dict_not_black = {} for i in account_not_black: - dict_not_black[i.id] = {'obj': i, 'debit': i.debit, 'credit':i.credit, 'balance': i.balance } + dict_not_black[i.id] = {'obj': i, 'debit': 0.0, 'credit':0.0, 'balance':0.0} if form['inf_type'] == 'BS': dict_not_black.get(i.id)['balanceinit'] = 0.0