From 521f028840aa5ab3fc37c727b5870c0cf7321d36 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 15 Mar 2012 13:52:57 -0530 Subject: [PATCH] =?UTF-8?q?[IMP]=20Mejora=20en=20la=20obtenci=C3=B3n=20del?= =?UTF-8?q?=20per=C3=ADodo=20en=20el=20parser=20del=20balance=20de=204=20c?= =?UTF-8?q?olumnas,=20en=20el=20modulo=20account=5Ffinancial=5Freport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account_financial_report/report/account_balance_4_cols.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_financial_report/report/account_balance_4_cols.py b/account_financial_report/report/account_balance_4_cols.py index 530af4d5..fcbfd6d9 100644 --- a/account_financial_report/report/account_balance_4_cols.py +++ b/account_financial_report/report/account_balance_4_cols.py @@ -209,9 +209,9 @@ class account_balance(report_sxw.rml_parse): if form['filter'] in ['byperiod', 'all']: if special: - ctx['periods'] = period_obj.search(self.cr, self.uid, [('id','in',form['periods'] or ctx['periods'])]) + ctx['periods'] = period_obj.search(self.cr, self.uid, [('id','in',form['periods'] or ctx.get('periods',False))]) else: - ctx['periods'] = period_obj.search(self.cr, self.uid, [('id','in',form['periods'] or ctx['periods']),('special','=',False)]) + ctx['periods'] = period_obj.search(self.cr, self.uid, [('id','in',form['periods'] or ctx.get('periods',False)),('special','=',False)]) if form['filter'] in ['bydate','all','none']: ctx['date_from'] = form['date_from']