summaryrefslogtreecommitdiff
path: root/addons/website_blog/controllers
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2019-10-11 11:07:25 +0000
committerfw-bot <otis@odoo.com>2019-10-11 18:04:04 +0000
commite2d27c9e81d7c730e4ec6c2bdea47c2e9d2d67d0 (patch)
treecf14872755d893db2ae00469c52a88de56b77318 /addons/website_blog/controllers
parentfd51030c4348dc820d7dd61006ee9b2576655c0f (diff)
[FIX] website_blog: add missing website=True in feed
Before this commit, if you archive a blog, you will have a 500 instead of 404. Serve page to show the 404 use request.website, so we need to force controller with website=True to bind website on the request. Probably need to check all controllers in website_* module. opw-2066725 closes odoo/odoo#38539 X-original-commit: 74341c4fcba701fe5ce7ee742880bbf138131a0d Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_blog/controllers')
-rw-r--r--addons/website_blog/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py
index 5d8279c22ba..de86c2be8a5 100644
--- a/addons/website_blog/controllers/main.py
+++ b/addons/website_blog/controllers/main.py
@@ -165,7 +165,7 @@ class WebsiteBlog(http.Controller):
return request.render("website_blog.blog_post_short", values)
- @http.route(['''/blog/<model("blog.blog", "[('website_id', 'in', (False, current_website_id))]"):blog>/feed'''], type='http', auth="public")
+ @http.route(['''/blog/<model("blog.blog", "[('website_id', 'in', (False, current_website_id))]"):blog>/feed'''], type='http', auth="public", website=True)
def blog_feed(self, blog, limit='15', **kwargs):
v = {}
v['blog'] = blog