[FIX] website_blog: fix domain to clean comments

This commit is contained in:
Jeremy Kersten
2015-02-03 12:02:02 +01:00
parent 6641c61ce6
commit 5d1b7d8a31
+2 -1
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)