mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 07:51:59 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -1,13 +1,13 @@
|
|||
<?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="name">hr.applicant.list.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"/>
|
||||
<field name="survey_id" column_invisible="True"/>
|
||||
<field name="response_ids" column_invisible="True"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -18,15 +18,15 @@
|
|||
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='archive_applicant']" position="before">
|
||||
<button name="action_send_survey" string="SEND INTERVIEW" type="object" attrs="{'invisible': ['|', ('active', '=', False), ('survey_id', '=', False)]}"/>
|
||||
<button name="action_send_survey" string="Send Interview" type="object" invisible="not active or not survey_id"/>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_makeMeeting']" position="after">
|
||||
<xpath expr="//button[@name='action_create_meeting']" position="after">
|
||||
<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)]}">
|
||||
invisible="not survey_id or not response_ids">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Consult</span>
|
||||
<span class="o_stat_text">Interview</span>
|
||||
|
|
@ -35,8 +35,7 @@
|
|||
</xpath>
|
||||
<xpath expr="//field[@name='job_id']" position="before">
|
||||
<field name="survey_id" invisible="1"/>
|
||||
<field name="response_id" invisible="1"/>
|
||||
<field name="response_state" invisible="1"/>
|
||||
<field name="response_ids" invisible="1"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -6,14 +6,11 @@
|
|||
<field name="inherit_id" ref="hr_recruitment.hr_job_survey"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="interviewer_ids" position="after">
|
||||
<label for="survey_id" groups="survey.group_survey_user"/>
|
||||
<div groups="survey.group_survey_user">
|
||||
<label for="survey_id"/>
|
||||
<div>
|
||||
<field name="survey_id"
|
||||
context="{'default_access_mode': 'token'}"/>
|
||||
<div class="o_link_trackers col-6 text-end">
|
||||
<a type="object" name="action_test_survey">
|
||||
</a>
|
||||
</div>
|
||||
context="{'default_access_mode': 'token'}"
|
||||
domain="[('survey_type', '=', 'recruitment')]"/>
|
||||
</div>
|
||||
</field>
|
||||
</field>
|
||||
|
|
@ -23,7 +20,7 @@
|
|||
<field name="model">hr.job</field>
|
||||
<field name="inherit_id" ref="hr_recruitment.view_hr_job_kanban"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='manager_id']" position="after">
|
||||
<xpath expr="//field[@name='active']" position="after">
|
||||
<field name="survey_id"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='menu_view_applications']" position="after">
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="hr_recruitment.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<div id="interview_forms" position="replace">
|
||||
<setting id="interview_forms_setting" position="inside">
|
||||
<div class="content-group">
|
||||
<div class="mt8">
|
||||
<button name="%(survey.action_survey_form)d" icon="fa-arrow-right" type="action" string="Interview Survey" class="btn-link"/>
|
||||
<button name="%(survey.action_survey_form)d" icon="oi-arrow-right" type="action" string="Interview Survey" class="btn-link"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="survey_survey_view_form" model="ir.ui.view">
|
||||
<field name="name">survey.survey.view.form.inherit.recruitment</field>
|
||||
<field name="model">survey.survey</field>
|
||||
<field name="inherit_id" ref="survey.survey_survey_view_form"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='survey_type']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<button name="action_send_survey" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
<button name="action_start_session" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
<button name="action_archive" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
<xpath expr="//group[@name='scoring']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//label[@for='is_time_limited']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='is_time_limited']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='scoring_type']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//label[@for='certification']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='certification']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//group[@name='live_session']" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="survey_survey_view_kanban" model="ir.ui.view">
|
||||
<field name="name">survey.survey.view.kanban.inherit.recruitment</field>
|
||||
<field name="model">survey.survey</field>
|
||||
<field name="inherit_id" ref="survey.survey_survey_view_kanban"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<button name="action_send_survey" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
<button name="action_start_session" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="survey_survey_action_recruitment" model="ir.actions.act_window">
|
||||
<field name="name">Interviews</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">survey.survey</field>
|
||||
<field name="domain">[('survey_type', '=', 'recruitment')]</field>
|
||||
<field name="view_ids" eval="[(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'kanban', 'view_id': ref('hr_recruitment_survey.survey_survey_view_kanban')}),
|
||||
(0, 0, {'view_mode': 'form', 'view_id': ref('hr_recruitment_survey.survey_survey_view_form')}),
|
||||
]"/>
|
||||
<field name="view_mode">kanban,list,activity,form</field>
|
||||
<field name="context">{
|
||||
'default_survey_type': 'recruitment',
|
||||
}
|
||||
</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Add a new survey
|
||||
</p><p>
|
||||
You can create surveys used for recruitments. Design easily your interview,
|
||||
send invitations and analyze answers.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_hr_recruitment_config_surveys"
|
||||
name="Interviews"
|
||||
action="survey_survey_action_recruitment"
|
||||
parent="hr_recruitment.menu_hr_recruitment_configuration"
|
||||
sequence="50"
|
||||
groups="hr_recruitment.group_hr_recruitment_manager"/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="hr_recruitment_survey_button_form_view" inherit_id="survey.survey_button_form_view">
|
||||
<xpath expr="//div[hasclass('survey_button_form_view_hook')]" position="inside">
|
||||
<a t-if="(env.user.has_group('hr_recruitment.group_hr_recruitment_manager') and survey.survey_type == 'recruitment')"
|
||||
t-attf-href="/odoo/action-hr_recruitment_survey.survey_survey_action_recruitment/{{survey.id}}"
|
||||
class="ms-2">
|
||||
<i class="oi oi-fw oi-arrow-right"/>Go to Recruitment
|
||||
</a>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue