[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:
parent
368afae722
commit
5759df7bef
|
@ -63,7 +63,7 @@ class crm_lead_forward_to_partner(osv.TransientModel):
|
||||||
if wizard.comment:
|
if wizard.comment:
|
||||||
message += '<p>%s</p>' % wizard.comment
|
message += '<p>%s</p>' % wizard.comment
|
||||||
for active_id in context.get('active_ids', []):
|
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:
|
if values:
|
||||||
lead_obj.write(cr, SUPERUSER_ID, context.get('active_ids', []), values)
|
lead_obj.write(cr, SUPERUSER_ID, context.get('active_ids', []), values)
|
||||||
if wizard.interested:
|
if wizard.interested:
|
||||||
|
|
Loading…
Reference in New Issue