[FIX] website_blog: fix domain to clean comments

This commit is contained in:
Jeremy Kersten 2015-02-03 12:01:44 +01:00
parent 6641c61ce6
commit 5d1b7d8a31
1 changed files with 2 additions and 1 deletions

View File

@ -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)