[REM]hr_recruitment:unnecessary subtype removed
bzr revid: kbh@tinyerp.com-20121121125209-votyj0ro8i6b9z5q
This commit is contained in:
parent
c6a88089c9
commit
366dd537ac
|
@ -480,7 +480,7 @@ class hr_applicant(base_stage, osv.Model):
|
|||
context = {}
|
||||
for applicant in self.browse(cr, uid, ids, context=context):
|
||||
if applicant.job_id:
|
||||
self.pool.get('hr.job').message_post(cr, uid, [applicant.job_id.id], body=_('New employee joined the company %s.')%(applicant.name,), subtype="hr_recruitment.mt_hired", context=context)
|
||||
self.pool.get('hr.job').message_post(cr, uid, [applicant.job_id.id], body=_('New employee joined the company %s.')%(applicant.name,), 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, context=context)
|
||||
|
|
|
@ -462,10 +462,6 @@
|
|||
</record>
|
||||
|
||||
<!-- mail: subtypes -->
|
||||
<record id="mt_hired" model="mail.message.subtype">
|
||||
<field name="name">Employee Hired</field>
|
||||
<field name="res_model">hr.job</field>
|
||||
</record>
|
||||
<record id="mt_applicant_new" model="mail.message.subtype">
|
||||
<field name="name">New Applicant</field>
|
||||
<field name="res_model">hr.job</field>
|
||||
|
|
Loading…
Reference in New Issue