From 6beeec363a09c7b2bf77623db7c156c738eacf2e Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 3 May 2016 18:01:26 +0200 Subject: [PATCH] [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 --- addons/crm_partner_assign/wizard/crm_channel_interested.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm_partner_assign/wizard/crm_channel_interested.py b/addons/crm_partner_assign/wizard/crm_channel_interested.py index 76dc52b30f3..3994320f2f9 100644 --- a/addons/crm_partner_assign/wizard/crm_channel_interested.py +++ b/addons/crm_partner_assign/wizard/crm_channel_interested.py @@ -48,7 +48,7 @@ class crm_lead_forward_to_partner(osv.TransientModel): if wizard.comment: message += '

%s

' % 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: