[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
This commit is contained in:
parent
e84c01ebc1
commit
b40cb12626
|
@ -141,6 +141,7 @@ class WebsiteBlog(http.Controller):
|
|||
values = {
|
||||
'blog': blog,
|
||||
'blogs': blogs,
|
||||
'main_object': blog,
|
||||
'tags': tags,
|
||||
'tag': tag,
|
||||
'blog_posts': blog_posts,
|
||||
|
|
Loading…
Reference in New Issue