From 80ee20fd3e6e168848e09d08e91461009fb01a8c Mon Sep 17 00:00:00 2001 From: "Apa (Open ERP)" Date: Wed, 18 Mar 2009 16:17:03 +0530 Subject: [PATCH] small changes bzr revid: apa@tinyerp.com-20090318104703-wu48zbveuazbw4fg --- addons/account/report/account_balance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index 6b4d510cb86..4c0adb74786 100644 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -93,17 +93,17 @@ class account_balance(report_sxw.rml_parse): res={} result_acc=[] ctx = self.context.copy() + ctx['fiscalyear'] = form['fiscalyear'] if form['state']=='byperiod' : - ctx['fiscalyear'] = form['fiscalyear'] ctx['periods'] = form['periods'][0][2] elif form['state']== 'bydate': - ctx['fiscalyear'] = form['fiscalyear'] ctx['date_from'] = form['date_from'] ctx['date_to'] = form['date_to'] elif form['state'] == 'all' : - ctx['fiscalyear'] = form['fiscalyear'] + ctx['periods'] = form['periods'][0][2] ctx['date_from'] = form['date_from'] ctx['date_to'] = form['date_to'] + accounts = self.pool.get('account.account').browse(self.cr, self.uid, ids, ctx) def cmp_code(x, y):