From e2d27c9e81d7c730e4ec6c2bdea47c2e9d2d67d0 Mon Sep 17 00:00:00 2001 From: fw-bot Date: Fri, 11 Oct 2019 11:07:25 +0000 Subject: [PATCH] [FIX] website_blog: add missing website=True in feed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/website_blog/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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//feed'''], type='http', auth="public") + @http.route(['''/blog//feed'''], type='http', auth="public", website=True) def blog_feed(self, blog, limit='15', **kwargs): v = {} v['blog'] = blog