[FIX] website_blog: who wrote such stupid domains ?
bzr revid: tde@openerp.com-20140401095430-tn2i94o1bmdvevgd
This commit is contained in:
parent
e29e6dfe26
commit
76141aaecf
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue