diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index 15560cf8..3f7e24b9 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -654,8 +654,7 @@ class account_balance(report_sxw.rml_parse): } if form['columns'] == 'qtr': - pn = 1 - for p_id in p: + for pn in range(1,5): if form['inf_type'] == 'IS': d, c, b = map(z, [ @@ -675,8 +674,6 @@ class account_balance(report_sxw.rml_parse): 'bal%s' % pn: self.exchange(b), }) - pn += 1 - if form['inf_type'] == 'IS': d, c, b = map(z, [ all_account_period['all'][id]['debit'], all_account_period['all'][id]['credit'], all_account_period['all'][id]['balance']])