[ADDED] hr : Added Functionality for stages in History & Communication Tab of hr.applicant

lp bug: https://launchpad.net/bugs/844022 fixed

bzr revid: bde@tinyerp.com-20110916065654-vsqhuxpz83wp0z1u
This commit is contained in:
Bharat (OpenERP) 2011-09-16 12:26:54 +05:30
parent d101d3fbaa
commit 3f87289b81
1 changed files with 6 additions and 0 deletions

View File

@ -441,6 +441,12 @@ class hr_applicant(crm.crm_case, osv.osv):
self.write(cr, uid, ids, {'date_open': False, 'date_closed': False})
return res
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
self.message_append(cr, uid, ids, text, body_text=text, context=context)
return super(hr_applicant,self).write(cr, uid, ids, vals, context=context)
hr_applicant()