[FIX] incomign email on a partner: fixed auto-inclusion of destination partner in recipients.
bzr revid: tde@openerp.com-20121115171830-0el4jrt1gjmtrts1
This commit is contained in:
parent
0cde689fa9
commit
54090e8d92
|
@ -55,7 +55,7 @@ class res_partner_mail(osv.Model):
|
|||
if type == 'email':
|
||||
partner_ids = kwargs.get('partner_ids', [])
|
||||
if thread_id not in partner_ids:
|
||||
partner_ids.append(thread_id)
|
||||
partner_ids.append((4, thread_id))
|
||||
kwargs['partner_ids'] = partner_ids
|
||||
thread_id = False
|
||||
return super(res_partner_mail, self).message_post(cr, uid, thread_id, body=body, subject=subject,
|
||||
|
|
Loading…
Reference in New Issue