[FIX] website_blog: fix domain to clean comments
This commit is contained in:
parent
6641c61ce6
commit
5d1b7d8a31
|
@ -195,7 +195,8 @@ class BlogPost(osv.Model):
|
|||
msg_ids = self.pool['mail.message'].search(cr, SUPERUSER_ID, [
|
||||
('res_id', '=', id),
|
||||
('model', '=', self._name),
|
||||
'|', ('path', 'not in', existing), ('path', '=', False)
|
||||
('path', 'not in', existing),
|
||||
('path', '!=', False)
|
||||
], context=context)
|
||||
self.pool['mail.message'].unlink(cr, SUPERUSER_ID, msg_ids, context=context)
|
||||
|
||||
|
|
Loading…
Reference in New Issue