diff options
| author | Jeremy Kersten <jke@odoo.com> | 2014-08-11 17:15:57 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2014-08-11 17:15:57 +0200 |
| commit | 541cfc93a3a871f1d747eea9bfcda71ec05708b1 (patch) | |
| tree | 7d496b85b9f85dae8af8df6e020310fba5922744 /addons/website_event/controllers/main.py | |
| parent | 2f4be42d8c6e3a6d3b46981c7e030e9e306cf646 (diff) | |
[FIX] website_event: show online in event in all country. Add filter online event. Keep the date between filter.
Diffstat (limited to 'addons/website_event/controllers/main.py')
| -rw-r--r-- | addons/website_event/controllers/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py index 2a6e1d134e3..2ceac516351 100644 --- a/addons/website_event/controllers/main.py +++ b/addons/website_event/controllers/main.py @@ -90,9 +90,12 @@ class website_event(http.Controller): if searches["type"] != 'all': current_type = type_obj.browse(cr, uid, int(searches['type']), context=context) domain_search["type"] = [("type", "=", int(searches["type"]))] - if searches["country"] != 'all': + + if searches["country"] != 'all' and searches["country"] != 'online': current_country = country_obj.browse(cr, uid, int(searches['country']), context=context) - domain_search["country"] = [("country_id", "=", int(searches["country"]))] + domain_search["country"] = ['|', ("country_id", "=", int(searches["country"])), ("country_id", "=", False)] + elif searches["country"] == 'online': + domain_search["country"] = [("country_id", "=", False)] def dom_without(without): domain = [('state', "in", ['draft','confirm','done'])] |
