Initial commit: Hr packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 62531cd146
2820 changed files with 1432848 additions and 0 deletions

View file

@ -0,0 +1,54 @@
<?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='archive_applicant']" position="before">
<button name="action_send_survey" string="SEND INTERVIEW" type="object" attrs="{'invisible': ['|', ('active', '=', False), ('survey_id', '=', False)]}"/>
</xpath>
<xpath expr="//button[@name='action_makeMeeting']" 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)]}">
<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"/>
<field name="response_state" 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>

View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="hr_job_survey_inherit" model="ir.ui.view">
<field name="name">hr.job.form.inherit</field>
<field name="model">hr.job</field>
<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">
<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>
</div>
</field>
</field>
</record>
<record id="view_hr_job_kanban_inherit" model="ir.ui.view">
<field name="name">hr.job.kanban.inherit</field>
<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">
<field name="survey_id"/>
</xpath>
<xpath expr="//div[@name='menu_view_applications']" position="after">
<div role="menuitem" t-if="record.survey_id.raw_value">
<a name="action_test_survey" type="object" title="Display Interview Form">Interviews</a>
</div>
</xpath>
<xpath expr="//div[@name='menu_new_applications']" position="after">
<div role="menuitem" t-if="!record.survey_id.raw_value">
<a name="action_new_survey" type="object" title="Display Interview Form">Interview Form</a>
</div>
</xpath>
</field>
</record>
</odoo>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.hr.recruitment.survey</field>
<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">
<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"/>
</div>
</div>
</div>
</field>
</record>
</odoo>