[FIX] crm_partner_assign: Interested message subtype

When a partner tells he is interested or not by a lead,
the customer on the lead must not receive a mail
with this information.

opw-676729
This commit is contained in:
Denis Ledoux
2016-05-03 18:03:27 +02:00
parent dd6640616e
commit 6beeec363a
@@ -48,7 +48,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, subtype="mail.mt_comment", context=context)
lead_obj.message_post(cr, uid, active_id, body=message, subtype="mail.mt_note", context=context)
if values:
lead_obj.write(cr, SUPERUSER_ID, context.get('active_ids', []), values)
if wizard.interested: