[FIX] mail: attachments when the user write on the wall
bzr revid: chm@openerp.com-20121029100001-ztsaakw1jt0flqmy
This commit is contained in:
parent
0d44a35745
commit
4c969ed551
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue