[FIX] mail: issue: After receiving inbox messages from external emails, when clicking on reply button the external email is listed in the form. However when clicking on send the external email is removed! and instead of email what we get is an internal note.

bzr revid: chm@openerp.com-20130403094046-rexsmdz6tn1zc2hk
This commit is contained in:
Christophe Matthieu
2013-04-03 11:40:46 +02:00
parent 3d58511f89
commit 04f1da5278
+2 -1
View File
@@ -985,7 +985,8 @@ class mail_thread(osv.AbstractModel):
partner_ids.add(partner_id)
else:
pass # we do not manage anything else
if parent_id and model == 'mail.thread':
if parent_id and not model:
parent_message = mail_message.browse(cr, uid, parent_id, context=context)
partner_ids |= set([partner.id for partner in parent_message.partner_ids])
if parent_message.author_id: