From 758f918bc8ec183a35e5b93a56545b89d9b70a89 Mon Sep 17 00:00:00 2001 From: " UCO(OpenERP)" <> Date: Mon, 17 Jan 2011 19:27:06 +0530 Subject: [PATCH] [Fix] crm : fix the log message bzr revid: sbh@tinyerp.com-20110117135706-mgwjddzdtoqkl8mi --- addons/crm/crm_lead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)