[MRG] improved view ,applicant assigned subtype lp:~openerp-dev/openobject-addons/trunk-job-positions-improve-cod

bzr revid: tpa@tinyerp.com-20130830093538-z5n9tlyonxbn62mh
This commit is contained in:
Turkesh Patel (Open ERP) 2013-08-30 15:05:38 +05:30
commit 629858e76b
3 changed files with 16 additions and 25 deletions

View File

@ -349,25 +349,23 @@
</div>
<div class="oe_right oe_job_button_box" name="buttons"/>
<group>
<group colspan="4">
<group name="job_data">
<field name="department_id"/>
<label for="no_of_recruitment"/>
<div>
<field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)" class="oe_inline"/>
<p>Currently, <field name="no_of_employee" groups="base.group_user" colspan="0" class="oe_inline"/> employees</p>
</div>
</group>
<group name="job_data">
<field name="department_id"/>
<label for="no_of_recruitment"/>
<div>
<field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)" class="oe_inline"/>
<p>Currently, <field name="no_of_employee" groups="base.group_user" colspan="0" class="oe_inline"/> employees</p>
</div>
</group>
<div colspan="4">
<label for="description"/>
<field name="description"/>
</div>
<div colspan="4">
<label for="requirements"/>
<field name="requirements"/>
</div>
</group>
<div>
<label for="description"/>
<field name="description"/>
</div>
<div>
<label for="requirements"/>
<field name="requirements"/>
</div>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>

View File

@ -417,6 +417,7 @@ class hr_applicant(osv.Model):
'department_id': applicant.department_id.id
})
self.write(cr, uid, [applicant.id], {'emp_id': emp_id}, context=context)
self.message_post(cr, uid, [applicant.id], body=_('Applicant <b>Hired</b>'), subtype="hr_recruitment.mt_applicant_employee", context=context)
else:
raise osv.except_osv(_('Warning!'), _('You must define an Applied Job and a Contact Name for this applicant.'))

View File

@ -483,14 +483,6 @@
</record>
<!-- Job-related subtypes for messaging / Chatter -->
<record id="mt_job_applicant_new" model="mail.message.subtype">
<field name="name">Applicant Created</field>
<field name="res_model">hr.job</field>
<field name="default" eval="False"/>
<field name="parent_id" eval="ref('mt_applicant_new')"/>
<field name="relation_field">job_id</field>
</record>
<record id="mt_job_applicant_stage" model="mail.message.subtype">
<field name="name">Application Stage Changed</field>
<field name="res_model">hr.job</field>