Browse Source

[MRG] filter by : opening only gives error message

pull/7/merge
Maxime Chambreuil 11 years ago
parent
commit
df564eb6b5
  1. 3
      account_financial_report_webkit/report/common_partner_reports.py

3
account_financial_report_webkit/report/common_partner_reports.py

@ -110,11 +110,14 @@ class CommonPartnersReportHeaderWebkit(CommonReportHeaderWebkit):
if not periods: if not periods:
return [] return []
if mode != 'include_opening':
periods = self.exclude_opening_periods(periods) periods = self.exclude_opening_periods(periods)
search_params = {'period_ids': tuple(periods), search_params = {'period_ids': tuple(periods),
'date_stop': period_stop.date_stop} 'date_stop': period_stop.date_stop}
sql_conditions = ""
if periods:
sql_conditions = " AND account_move_line.period_id in %(period_ids)s" sql_conditions = " AND account_move_line.period_id in %(period_ids)s"
return sql_conditions, search_params return sql_conditions, search_params

Loading…
Cancel
Save