From fb58f9290b3fbc1a973507db6250c4fc42b1d8a4 Mon Sep 17 00:00:00 2001 From: "dle@openerp.com" <> Date: Wed, 6 Feb 2013 12:15:36 +0100 Subject: [PATCH] [FIX]crm lead: When merge, logger message display now Merged lead or merged opportunity depending on the initial type bzr revid: dle@openerp.com-20130206111536-qbc70bqrweotwj1f --- addons/crm/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 6b839fa91df..d5f90d8a653 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -566,7 +566,7 @@ class crm_lead(base_stage, format_address, osv.osv): subject = [merge_message] for opportunity in opportunities: subject.append(opportunity.name) - title = "%s : %s" % (merge_message, opportunity.name) + title = "%s : %s" % (opportunity.type == 'opportunity' and _('Merged opportunity') or _('Merged lead'), opportunity.name) details.append(self._mail_body(cr, uid, opportunity, CRM_LEAD_FIELDS_TO_MERGE, title=title, context=context)) # Chatter message's subject