<?xml version="1.0"?>
<openerp>
    <data>

        ######################## JOB OPPORTUNITIES (menu) ###########################
         <record model="ir.actions.act_window" id="crm_case_categ0_act_job">
            <field name="name">Applicants</field>
            <field name="res_model">hr.applicant</field>
            <field name="view_mode">tree,form,graph,calendar</field>
            <field name="view_id" ref="crm_case_tree_view_job"/>
            <field name="context">{"search_default_user_id":uid, 'search_default_current': 1,"search_default_department_id": department_id}</field>
            <field name="search_view_id" ref="view_crm_case_jobs_filter"/>
            <field name="help">From this menu you can track applicants in the recruitment process and manage all operations: meetings, interviews, phone calls, etc. If you setup the email gateway, applicants and their attached CV are created automatically when an email is sent to jobs@yourcompany.com. If you install the document management modules, all documents (CV and motivation letters) are indexed automatically, so that you can easily search through their content.</field>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_tree_view_act_job">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_tree_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_form_view_act_job">
            <field name="sequence" eval="3"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_graph_view_act_job">
            <field name="sequence" eval="4"/>
            <field name="view_mode">graph</field>
            <field name="view_id" ref="crm_case_graph_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <menuitem
            name="Recruitment"
            id="base.menu_crm_case_job_req_main"
            parent="hr.menu_hr_root"
            sequence="1"/>

     <!-- ALL JOBS REQUESTS -->

        <menuitem
            name="Applicants"
            parent="base.menu_crm_case_job_req_main"
            id="menu_crm_case_categ0_act_job" action="crm_case_categ0_act_job" sequence="1"/>
	
	    <menuitem parent="base.menu_crm_case_job_req_main" id="menu_hr_job" action="hr.action_hr_job" sequence="2"/>


    </data>
</openerp>
