summaryrefslogtreecommitdiff
path: root/addons/website_event
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-08-14 13:44:32 +0200
committerRomain Derie <rde@odoo.com>2018-08-14 22:25:36 +0200
commit75f3d8f1d7fc3615165af08a26cd7e31498ce0e4 (patch)
tree304dc1b2377453e540fba91b999db51dd5884283 /addons/website_event
parentfd9583982ed1c7ffb5e489ee081e860523a4d04a (diff)
[FIX] website_event, website_sale: _order on is_published
As fbbf24f58ac introduced multiwebsite and `website_published` became a related and/or a computed field (depending of the mixin), we should not order on this field as it is not on DB anymore. We now have the field `is_published` that replace `website_published`.
Diffstat (limited to 'addons/website_event')
-rw-r--r--addons/website_event/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py
index 33e51724613..acff56f9321 100644
--- a/addons/website_event/controllers/main.py
+++ b/addons/website_event/controllers/main.py
@@ -123,7 +123,7 @@ class WebsiteEventController(http.Controller):
order = 'date_begin desc'
if searches["country"] != 'all': # if we are looking for a specific country
order = 'is_online, ' + order # show physical events first
- order = 'website_published desc, ' + order
+ order = 'is_published desc, ' + order
events = Event.search(dom_without("none"), limit=step, offset=pager['offset'], order=order)
values = {