Skip to content
Snippets Groups Projects
Commit 2d34cb3f authored by Bharat Devnani's avatar Bharat Devnani
Browse files

[IMP] variable name from stage_obj to stage

bzr revid: bde@tinyerp.com-20110919064513-jp5osvf9yudy3356
parent 3f87289b
Branches
Tags
No related merge requests found
......@@ -443,8 +443,8 @@ class hr_applicant(crm.crm_case, osv.osv):
def write(self, cr, uid, ids, vals, context=None):
if 'stage_id' in vals and vals['stage_id']:
stage_obj = self.pool.get('hr.recruitment.stage').browse(cr, uid, vals['stage_id'], context=context)
text = _("Changed Stage to: %s") % stage_obj.name
stage = self.pool.get('hr.recruitment.stage').browse(cr, uid, vals['stage_id'], context=context)
text = _("Changed Stage to: %s") % stage.name
self.message_append(cr, uid, ids, text, body_text=text, context=context)
return super(hr_applicant,self).write(cr, uid, ids, vals, context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment