[FIX] website_blog: who wrote such stupid domains ?

bzr revid: tde@openerp.com-20140401095430-tn2i94o1bmdvevgd
This commit is contained in:
Thibault Delavallée 2014-04-01 11:54:30 +02:00
parent e29e6dfe26
commit 76141aaecf
1 changed files with 2 additions and 2 deletions

View File

@ -138,9 +138,9 @@ class WebsiteBlog(http.Controller):
domain = []
if blog:
domain += [("id", "in", [post.id for post in blog.blog_post_ids])]
domain += [('blog_id', '=', blog.id)]
if tag:
domain += [("id", "in", [post.id for post in tag.blog_post_ids])]
domain += [('tag_ids', 'in', tag.id)]
if date_begin and date_end:
domain += [("create_date", ">=", date_begin), ("create_date", "<=", date_end)]