summaryrefslogtreecommitdiff
path: root/addons/website_slides/controllers/main.py
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-08-01 11:20:38 +0000
committerSébastien Theys <seb@odoo.com>2019-08-02 16:47:58 +0000
commit1e9772889ba6969961aab0e87fd018494d6b15bb (patch)
treef53230d7f0f497b3d6e216fb1790e429b1d930dd /addons/website_slides/controllers/main.py
parentf0ffbea17381cb117f2eed4ea18a76e2b0f37f00 (diff)
[IMP] *: use image.mixin when appropriate
The following models are already using big images, or they might need big images in the future: - partner - hr employee - shop category - lunch product - gamification badge and karma rank PR: #34925
Diffstat (limited to 'addons/website_slides/controllers/main.py')
-rw-r--r--addons/website_slides/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/controllers/main.py b/addons/website_slides/controllers/main.py
index 2f12ab72775..57c25a04af0 100644
--- a/addons/website_slides/controllers/main.py
+++ b/addons/website_slides/controllers/main.py
@@ -324,7 +324,7 @@ class WebsiteSlides(WebsiteProfile):
return request.env['res.users'].sudo().search_read([
('karma', '>', 0),
('website_published', '=', True),
- ('image', '!=', False)], ['id'], limit=3, order='karma desc')
+ ('image_1920', '!=', False)], ['id'], limit=3, order='karma desc')
@http.route([
'/slides/<model("slide.channel"):channel>',