[IMP] make chnages into subtype data in hr
bzr revid: rma@tinyerp.com-20120904095649-ye94bntdm8ia5jrd
This commit is contained in:
parent
e50afb97b4
commit
10313331e8
|
@ -472,7 +472,7 @@ class hr_applicant(base_stage, osv.Model):
|
|||
for applicant in self.browse(cr, uid, ids, context=context):
|
||||
if applicant.emp_id:
|
||||
message = _("Applicant has been <b>hired</b> and created as an employee.")
|
||||
self.message_post(cr, uid, [applicant.id], body=message, subtype="closed", context=context)
|
||||
self.message_post(cr, uid, [applicant.id], body=message, subtype="hired", context=context)
|
||||
else:
|
||||
message = _("Applicant has been <b>hired</b>.")
|
||||
self.message_post(cr, uid, [applicant.id], body=message, subtype="hired", context=context)
|
||||
|
|
|
@ -471,7 +471,7 @@ You can automatically receive job application though an email gateway, see the H
|
|||
<field name="name">hired</field>
|
||||
<field name="model_ids" eval="[(4,ref('hr_recruitment.model_hr_applicant'))]"/>
|
||||
</record>
|
||||
<record id="mail.mail_subtype_refused " model="mail.message.subtype">
|
||||
<record id="mail.mail_subtype_refused" model="mail.message.subtype">
|
||||
<field name="name">refused</field>
|
||||
<field name="model_ids" eval="[(4,ref('hr_recruitment.model_hr_applicant'))]"/>
|
||||
<field name="default" eval="False"/>
|
||||
|
|
Loading…
Reference in New Issue