summaryrefslogtreecommitdiff
path: root/addons/hr_recruitment_survey/views/hr_applicant_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_recruitment_survey/views/hr_applicant_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/hr_recruitment_survey/views/hr_applicant_views.xml')
-rw-r--r--addons/hr_recruitment_survey/views/hr_applicant_views.xml62
1 files changed, 62 insertions, 0 deletions
diff --git a/addons/hr_recruitment_survey/views/hr_applicant_views.xml b/addons/hr_recruitment_survey/views/hr_applicant_views.xml
new file mode 100644
index 00000000..2bc99786
--- /dev/null
+++ b/addons/hr_recruitment_survey/views/hr_applicant_views.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="crm_case_tree_view_job_inherit" model="ir.ui.view">
+ <field name="name">hr.applicant.tree.inherit</field>
+ <field name="model">hr.applicant</field>
+ <field name="inherit_id" ref="hr_recruitment.crm_case_tree_view_job"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='source_id']" position="after">
+ <field name="survey_id" invisible="1"/>
+ <field name="response_id" invisible="1"/>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="hr_applicant_view_form_inherit" model="ir.ui.view">
+ <field name="name">hr.applicant.form.inherit</field>
+ <field name="model">hr.applicant</field>
+ <field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//button[@name='action_makeMeeting']" position="after">
+ <button name="action_start_survey"
+ class="oe_stat_button"
+ icon="fa-user"
+ type="object"
+ help="Answer related job question"
+ context="{'survey_id': survey_id}"
+ attrs="{'invisible':[('survey_id','=',False)]}">
+ <div class="o_field_widget o_stat_info">
+ <span class="o_stat_text">Start</span>
+ <span class="o_stat_text">Interview</span>
+ </div>
+ </button>
+ <button name="action_print_survey"
+ class="oe_stat_button"
+ icon="fa-pencil-square-o"
+ type="object"
+ help="See interview report"
+ attrs="{'invisible':['|',('survey_id','=',False),('response_id','=',False)]}">
+ <div class="o_field_widget o_stat_info">
+ <span class="o_stat_text">Consult</span>
+ <span class="o_stat_text">Interview</span>
+ </div>
+ </button>
+ </xpath>
+ <xpath expr="//field[@name='job_id']" position="before">
+ <field name="survey_id" invisible="1"/>
+ <field name="response_id" invisible="1"/>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="hr_kanban_view_applicant_inherit" model="ir.ui.view">
+ <field name="name">hr.applicants.kanban.inherit</field>
+ <field name="model">hr.applicant</field>
+ <field name="inherit_id" ref="hr_recruitment.hr_kanban_view_applicant"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='user_id']" position="before">
+ <field name="survey_id"/>
+ </xpath>
+ </field>
+ </record>
+</odoo>