summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2012-02-29 17:40:04 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2012-02-29 17:40:04 +0530
commit273472b095eb4263fc0f2ab9d48d5e8a6f2a4d0f (patch)
tree8118bfc9d4b1334aba6362f0f9db1d1f7ffa5a87
parent91a38360e4997fb5e5c8dd0f1da2e3bd226d172f (diff)
[IMP] Improved write method for change stage id.
bzr revid: jra@tinyerp.com-20120229121004-5p1otoss3d9i8vzv
-rw-r--r--addons/hr_recruitment/hr_recruitment.py4
1 files 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 <b>%s</b>.") % 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 <b>%s</b>.") % stage.name, type='notification')
return super(hr_applicant,self).write(cr, uid, ids, vals, context=context)
hr_applicant()