[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:
Nicolas Martinelli 2015-10-23 11:12:39 +02:00
parent e84c01ebc1
commit b40cb12626
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ class WebsiteBlog(http.Controller):
values = {
'blog': blog,
'blogs': blogs,
'main_object': blog,
'tags': tags,
'tag': tag,
'blog_posts': blog_posts,