Browse Source

[IMP] Mejora en la obtención del período en el parser del balance de 4 columnas,

en el modulo account_financial_report
6.0
unknown 13 years ago
committed by Javier Duran
parent
commit
521f028840
  1. 4
      account_financial_report/report/account_balance_4_cols.py

4
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 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']

Loading…
Cancel
Save