[FIX] crm_partner_assign: add discussion subtype to interested/disintered messages, so portal users can see it

bzr revid: dle@openerp.com-20140404125450-v94rjpuuse9gkibr
This commit is contained in:
Denis Ledoux 2014-04-04 14:54:50 +02:00
parent 368afae722
commit 5759df7bef
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class crm_lead_forward_to_partner(osv.TransientModel):
if wizard.comment:
message += '<p>%s</p>' % wizard.comment
for active_id in context.get('active_ids', []):
lead_obj.message_post(cr, uid, active_id, body=message, context=context)
lead_obj.message_post(cr, uid, active_id, body=message, subtype="mail.mt_comment", context=context)
if values:
lead_obj.write(cr, SUPERUSER_ID, context.get('active_ids', []), values)
if wizard.interested: