Browse Source

[MRG] filter by : opening only gives error message

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

7
account_financial_report_webkit/report/common_partner_reports.py

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

Loading…
Cancel
Save