<commit_before><?xml version="1.0"?>
<openerp>
    <data>
        <menuitem
            id="menu_hr_recruitment_recruitment"
            name="Recruitment"
            parent="hr.menu_hr_configuration"
            sequence="2"/>

    # ------------------------------------------------------
    # Job Categories
    # ------------------------------------------------------

    <record id="hr_job_categ_action" model="ir.actions.act_window">
        <field name="name">Applicant Categories</field>
        <field name="res_model">crm.case.categ</field>
        <field name="view_type">form</field>
        <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
        <field name="domain">[('object_id.model', '=', 'hr.applicant')]</field>
        <field name="context">{'object_id':'hr.applicant'}</field>
    </record>
    # ------------------------------------------------------
    # Stage
    # ------------------------------------------------------
    <record id="hr_job_stage_act" model="ir.actions.act_window">
        <field name="name">Recruitment / Applicants Stages</field>
        <field name="res_model">hr.recruitment.stage</field>
        <field name="view_type">form</field>
        <field name="domain">[]</field>
        <field name="context">{}</field>
        <field name="help">Define here your stages of the recruitment process, for example: qualification call, first interview, second interview, refused, hired.</field>
    </record>


    # ------------------------------------------------------
    # Jobs
    # ------------------------------------------------------

    <record model="ir.ui.view" id="crm_case_tree_view_job">
        <field name="name">Applicants</field>
        <field name="model">hr.applicant</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Applicants" colors="grey:state in ('cancel','done');blue:state=='pending'">
                <field name="create_date"/>
                <field name="name" string="Subject"/>
                <field name="partner_name"/>
                <field name="email_from"/>
                <field name="partner_phone"/>
                <field name="job_id"/>
                <field name="stage_id"/>
                <button name="stage_previous" string="Previous" states="open,pending" type="object" icon="gtk-go-back"/>
                <button name="stage_next" string="Next" states="open,pending" type="object" icon="gtk-go-forward"/>
                <field name="title_action" invisible="context.get('invisible_next_action', True)"/>
                <field name="date_action" invisible="context.get('invisible_next_date', True)"/>
                <field name="survey" invisible="1"/>
                <field name="response" invisible="1"/>
                <field name="priority"/>
                <field name="type_id" invisible="1"/>
                <field name="availability" invisible="1"/>
                <field name="department_id" invisible="context.get('invisible_department', True)"/>
                <field name="user_id"/>
                <field name="state"/>
                <button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
                <button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="crm_case_form_view_job">
        <field name="name">Jobs - Recruitment Form</field>
        <field name="model">hr.applicant</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Jobs - Recruitment Form">
                <group colspan="4" col="8">
                        <field name="name" string="Subject"/>
                        <field name="partner_name"/>
                        <field name="job_id" on_change="onchange_job(job_id)"/>
                        <button string="Phone Call" name="%(action_hr_recruitment_phonecall)d" icon="terp-call-start" type="action" groups="base.group_extended"/>
                        <button name="action_makeMeeting" type="object" string="Meeting" icon="gtk-index"/>
                    <newline/>
                    <field name="department_id" widget="selection"/>
                    <group colspan="2" col="4">
                        <field name="stage_id" domain="[('department_id','=',department_id)]"/>
                        <button name="stage_previous" string="" type="object" icon="gtk-go-back"/>
                        <button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
                    </group>
                    <field name="user_id"/>
                    <button name="action_print_survey" string="Interview" type="object" icon="gtk-print" attrs="{'readonly':[('survey','=',False)]}"/>
                    <button name="%(survey.action_view_survey_question_message)d" string="Answer" type="action" icon="gtk-execute" context="{'survey_id': survey, 'response_id': [response], 'response_no':0 ,'active' : response, 'object' : 'hr.applicant', 'cur_id' :active_id}" attrs="{'readonly':[('survey','=',False)]}" groups="base.group_extended"/>
                    <newline/>
                    <field name="date_action"/>
                    <field name="title_action"/>
                </group>
                <notebook colspan="4">
                    <page string="Job Info">
                        <group col="3" colspan="2">
                            <separator colspan="3" string="Contact"/>
                            <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)" />
                            <button string="Create Partner"
                                    name="%(action_hr_recruitment_partner_create)d"
                                    icon="gtk-index" type="action" attrs="{'readonly':[('partner_id','!=',False)]}" groups="base.group_partner_manager"/>
                            <newline/>
                            <field name="partner_address_id" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="3"/>
                            <field name="email_from" colspan="3"/>
                            <field name="partner_phone" colspan="3"/>
                            <field name="partner_mobile" colspan="3"/>
                        </group>
                        <group col="2" colspan="2">
                            <separator colspan="2" string="Contract Data"/>
                            <field name="availability"/>
                            <field name="salary_expected"/>
                            <field name="salary_proposed"/>
                        </group>
                        <group col="2" colspan="2"><commit_msg>[MERGE] Merged the branch of Tejas about the fix of survey field on applicant form view<commit_after><?xml version="1.0"?>
<openerp>
    <data>
        <menuitem
            id="menu_hr_recruitment_recruitment"
            name="Recruitment"
            parent="hr.menu_hr_configuration"
            sequence="2"/>

    # ------------------------------------------------------
    # Job Categories
    # ------------------------------------------------------

    <record id="hr_job_categ_action" model="ir.actions.act_window">
        <field name="name">Applicant Categories</field>
        <field name="res_model">crm.case.categ</field>
        <field name="view_type">form</field>
        <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
        <field name="domain">[('object_id.model', '=', 'hr.applicant')]</field>
        <field name="context">{'object_id':'hr.applicant'}</field>
    </record>
    # ------------------------------------------------------
    # Stage
    # ------------------------------------------------------
    <record id="hr_job_stage_act" model="ir.actions.act_window">
        <field name="name">Recruitment / Applicants Stages</field>
        <field name="res_model">hr.recruitment.stage</field>
        <field name="view_type">form</field>
        <field name="domain">[]</field>
        <field name="context">{}</field>
        <field name="help">Define here your stages of the recruitment process, for example: qualification call, first interview, second interview, refused, hired.</field>
    </record>


    # ------------------------------------------------------
    # Jobs
    # ------------------------------------------------------

    <record model="ir.ui.view" id="crm_case_tree_view_job">
        <field name="name">Applicants</field>
        <field name="model">hr.applicant</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Applicants" colors="grey:state in ('cancel','done');blue:state=='pending'">
                <field name="create_date"/>
                <field name="name" string="Subject"/>
                <field name="partner_name"/>
                <field name="email_from"/>
                <field name="partner_phone"/>
                <field name="job_id"/>
                <field name="stage_id"/>
                <button name="stage_previous" string="Previous" states="open,pending" type="object" icon="gtk-go-back"/>
                <button name="stage_next" string="Next" states="open,pending" type="object" icon="gtk-go-forward"/>
                <field name="title_action" invisible="context.get('invisible_next_action', True)"/>
                <field name="date_action" invisible="context.get('invisible_next_date', True)"/>
                <field name="survey" invisible="1"/>
                <field name="response" invisible="1"/>
                <field name="priority"/>
                <field name="type_id" invisible="1"/>
                <field name="availability" invisible="1"/>
                <field name="department_id" invisible="context.get('invisible_department', True)"/>
                <field name="user_id"/>
                <field name="state"/>
                <button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
                <button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
            </tree>
        </field>
    </record>

    <record model="ir.ui.view" id="crm_case_form_view_job">
        <field name="name">Jobs - Recruitment Form</field>
        <field name="model">hr.applicant</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Jobs - Recruitment Form">
                <group colspan="4" col="8">
                        <field name="name" string="Subject"/>
                        <field name="partner_name"/>
                        <field name="job_id" on_change="onchange_job(job_id)"/>
                        <button string="Phone Call" name="%(action_hr_recruitment_phonecall)d" icon="terp-call-start" type="action" groups="base.group_extended"/>
                        <button name="action_makeMeeting" type="object" string="Meeting" icon="gtk-index"/>
                    <newline/>
                    <field name="department_id" widget="selection"/>
                    <group colspan="2" col="4">
                        <field name="stage_id" domain="[('department_id','=',department_id)]"/>
                        <button name="stage_previous" string="" type="object" icon="gtk-go-back"/>
                        <button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
                    </group>
                    <field name="user_id"/>
                    <field name="survey" invisible="1" />
                    <button name="action_print_survey" string="Interview" type="object" icon="gtk-print" attrs="{'readonly':[('survey','=',False)]}"/>
                    <button name="%(survey.action_view_survey_question_message)d" string="Answer" type="action" icon="gtk-execute" context="{'survey_id': survey, 'response_id': [response], 'response_no':0 ,'active' : response, 'object' : 'hr.applicant', 'cur_id' :active_id}" attrs="{'readonly':[('survey','=',False)]}" groups="base.group_extended"/>
                    <newline/>
                    <field name="date_action"/>
                    <field name="title_action"/>
                </group>
                <notebook colspan="4">
                    <page string="Job Info">
                        <group col="3" colspan="2">
                            <separator colspan="3" string="Contact"/>
                            <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)" />
                            <button string="Create Partner"
                                    name="%(action_hr_recruitment_partner_create)d"
                                    icon="gtk-index" type="action" attrs="{'readonly':[('partner_id','!=',False)]}" groups="base.group_partner_manager"/>
                            <newline/>
                            <field name="partner_address_id" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="3"/>
                            <field name="email_from" colspan="3"/>
                            <field name="partner_phone" colspan="3"/>
                            <field name="partner_mobile" colspan="3"/>
                        </group>
                        <group col="2" colspan="2">
                            <separator colspan="2" string="Contract Data"/>
                            <field name="availability"/>
                            <field name="salary_expected"/>
                            <field name="salary_proposed"/>
                        </group>
                        <group col="2" colspan="2">
{'fraction_non_alphanumeric': 0.1951484431571325, 'fraction_numerical': 0.0036929761042722663, 'mean_word_length': 1.8088265202359162, 'pattern_counts': {'":': 0, '<': 228, '<?xml version=': 2, '>': 228, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '519014', 'n_tokens_mistral': 3763, 'n_tokens_neox': 3531, 'n_words': 631}