[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
This commit is contained in:
dle@openerp.com 2013-02-06 12:15:36 +01:00
parent 4b2556736e
commit fb58f9290b
1 changed files with 1 additions and 1 deletions

View File

@ -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