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

        ######################## JOB OPPORTUNITIES (menu) ###########################
         <record model="ir.actions.act_window" id="crm_case_categ0_act_job">
            <field name="name">Applications</field>
            <field name="res_model">hr.applicant</field>
            <field name="view_mode">kanban,tree,form,graph,calendar</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="view_crm_case_jobs_filter"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to add a new job applicant.
              </p><p>
                OpenERP helps you track applicants in the recruitment
                process and follow up all operations: meetings, interviews, etc.
              </p><p>
                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 resumes are indexed automatically, so that you can
                easily search through their content.
              </p>
            </field>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_kanban_view_act_job">
            <field name="sequence" eval="0"/>
            <field name="view_mode">kanban</field>
            <field name="view_id" ref="hr_kanban_view_applicant"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </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="Applications"
            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="hr.menu_hr_configuration" id="hr.menu_hr_job" action="hr.action_hr_job" sequence="2"/>


    </data>
</openerp>
