From 273472b095eb4263fc0f2ab9d48d5e8a6f2a4d0f Mon Sep 17 00:00:00 2001 From: "Jiten (OpenERP)" Date: Wed, 29 Feb 2012 17:40:04 +0530 Subject: [PATCH] [IMP] Improved write method for change stage id. bzr revid: jra@tinyerp.com-20120229121004-5p1otoss3d9i8vzv --- addons/hr_recruitment/hr_recruitment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index 1637313a28c..4988fef8278 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -518,8 +518,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 = 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) + self.message_append_note(cr, uid, ids, _('System notification'), + _("Changed Stage to %s.") % stage.name, type='notification') return super(hr_applicant,self).write(cr, uid, ids, vals, context=context) hr_applicant()