diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index f8cf6b39930..fb540ad54b8 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -301,9 +301,9 @@ class crm_lead(crm_case, osv.osv): message='' for case in self.browse(cr, uid, ids, context=context): if case.type == 'lead' or context.get('stage_type',False)=='lead': - message = _("The stage of lead '%s' has been changed to '%s'.") % (case.name, case.stage_id.name) + message = _("The stage of lead '%s' has been changed to '%s'.") % (case.name, stage_obj.name) elif case.type == 'opportunity': - message = _("The stage of opportunity '%s' has been changed to '%s'.") % (case.name, case.stage_id.name) + message = _("The stage of opportunity '%s' has been changed to '%s'.") % (case.name, stage_obj.name) self.log(cr, uid, case.id, message) return super(crm_lead,self).write(cr, uid, ids, vals, context)