|
@ -209,9 +209,9 @@ class account_balance(report_sxw.rml_parse): |
|
|
|
|
|
|
|
|
if form['filter'] in ['byperiod', 'all']: |
|
|
if form['filter'] in ['byperiod', 'all']: |
|
|
if special: |
|
|
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: |
|
|
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']: |
|
|
if form['filter'] in ['bydate','all','none']: |
|
|
ctx['date_from'] = form['date_from'] |
|
|
ctx['date_from'] = form['date_from'] |
|
|