| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="crm_case_tree_view_job_inherit" model="ir.ui.view"> |
| 4 | <field name="name">hr.applicant.list.inherit</field> |
| 5 | <field name="model">hr.applicant</field> |
| 6 | <field name="inherit_id" ref="hr_recruitment.crm_case_tree_view_job"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//field[@name='source_id']" position="after"> |
| 9 | <field name="survey_id" column_invisible="True"/> |
| 10 | <field name="response_ids" column_invisible="True"/> |
| 11 | </xpath> |
| 12 | </field> |
| 13 | </record> |
| 14 | |
| 15 | <record id="hr_applicant_view_form_inherit" model="ir.ui.view"> |
| 16 | <field name="name">hr.applicant.form.inherit</field> |
| 17 | <field name="model">hr.applicant</field> |
| 18 | <field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form"/> |
| 19 | <field name="arch" type="xml"> |
| 20 | <xpath expr="//button[@name='archive_applicant']" position="before"> |
| 21 | <button name="action_send_survey" string="Send Interview" type="object" invisible="not active or not survey_id"/> |
| 22 | </xpath> |
| 23 | <xpath expr="//button[@name='action_create_meeting']" position="after"> |
| 24 | <button name="action_print_survey" |
| 25 | class="oe_stat_button" |
| 26 | icon="fa-pencil-square-o" |
| 27 | type="object" |
| 28 | help="See interview report" |
| 29 | invisible="not survey_id or not response_ids"> |
| 30 | <div class="o_field_widget o_stat_info"> |
| 31 | <span class="o_stat_text">Consult</span> |
| 32 | <span class="o_stat_text">Interview</span> |
| 33 | </div> |
| 34 | </button> |
| 35 | </xpath> |
| 36 | <xpath expr="//field[@name='job_id']" position="before"> |
| 37 | <field name="survey_id" invisible="1"/> |
| 38 | <field name="response_ids" invisible="1"/> |
| 39 | </xpath> |
| 40 | </field> |
| 41 | </record> |
| 42 | |
| 43 | <record id="hr_kanban_view_applicant_inherit" model="ir.ui.view"> |
| 44 | <field name="name">hr.applicants.kanban.inherit</field> |
| 45 | <field name="model">hr.applicant</field> |
| 46 | <field name="inherit_id" ref="hr_recruitment.hr_kanban_view_applicant"/> |
| 47 | <field name="arch" type="xml"> |
| 48 | <xpath expr="//field[@name='user_id']" position="before"> |
| 49 | <field name="survey_id"/> |
| 50 | </xpath> |
| 51 | </field> |
| 52 | </record> |
| 53 | </odoo> |