[FIX] mail: attachments when the user write on the wall

bzr revid: chm@openerp.com-20121029100001-ztsaakw1jt0flqmy
This commit is contained in:
Christophe Matthieu 2012-10-29 11:00:01 +01:00
parent 0d44a35745
commit 4c969ed551
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ class mail_thread(osv.AbstractModel):
ir_attachment = self.pool.get('ir.attachment')
mail_message = self.pool.get('mail.message')
filtered_attachment_ids = ir_attachment.search(cr, SUPERUSER_ID, [
('res_model', '=', 'mail.message'),
('res_model', '=', 'mail.compose.message'),
('res_id', '=', 0),
('create_uid', '=', uid),
('id', 'in', attachment_ids)], context=context)