From b40cb12626469e69d8d1e19cdaebccc9628702ef Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 23 Oct 2015 11:12:39 +0200 Subject: [PATCH] [FIX] website_blog: return correct main_object If the main object is not set, the default object used is 'ir.ui.view'. One of the consequence is that website SEO metadata will be stored on 'ir.ui.view' instead of the correct model, in this case 'blog.blog'. This will cause the SEO metadata to be the same for all the blogs. opw-651898 --- addons/website_blog/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py index f8ab10f3648..1460ccf465d 100644 --- a/addons/website_blog/controllers/main.py +++ b/addons/website_blog/controllers/main.py @@ -141,6 +141,7 @@ class WebsiteBlog(http.Controller): values = { 'blog': blog, 'blogs': blogs, + 'main_object': blog, 'tags': tags, 'tag': tag, 'blog_posts': blog_posts,