mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 01:32:05 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -6,113 +6,82 @@
|
|||
<field name="priority" eval="70"/>
|
||||
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[hasclass('settings')]" position="inside">
|
||||
<div class="app_settings_block" data-string="Employees" string="Employees" data-key="hr" groups="hr.group_hr_manager">
|
||||
<h2>Employees</h2>
|
||||
<div class="row mt16 o_settings_container" name="employees_setting_container">
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="presence_control_setting" title="Presence of employees">
|
||||
<div class="o_setting_right_pane">
|
||||
<span class="o_form_label">Presence Control</span>
|
||||
<div class="content-group" name="hr_presence_options">
|
||||
<div class="d-flex">
|
||||
<field name="module_hr_attendance" class="ml16"/>
|
||||
<label for="module_hr_attendance" class="o_light_label"/>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<field name="hr_presence_control_login" class="ml16"/>
|
||||
<label for="hr_presence_control_login" class="o_light_label"/>
|
||||
</div>
|
||||
<xpath expr="//form" position="inside">
|
||||
<app data-string="Employees" string="Employees" name="hr" groups="hr.group_hr_manager">
|
||||
<block title="Employees" name="employees_setting_container">
|
||||
<setting id="presence_control_setting" title="Presence of employees" string="Presence Display">
|
||||
<div class="content-group" name="hr_presence_options">
|
||||
<div class="d-flex">
|
||||
<field name="module_hr_attendance" class="ml16"/>
|
||||
<label for="module_hr_attendance" class="o_light_label"/>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<field name="hr_presence_control_login" class="ml16"/>
|
||||
<label for="hr_presence_control_login" class="o_light_label"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 o_setting_box"
|
||||
id="presence_reporting_setting"
|
||||
title="Advanced presence of employees">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_hr_presence"/>
|
||||
</setting>
|
||||
<setting id="presence_reporting_setting" help="Presence reporting screen, email and IP address control." title="Advanced presence of employees">
|
||||
<field name="module_hr_presence"/>
|
||||
<div class="d-flex mt-1" invisible="not module_hr_presence">
|
||||
<field name="hr_presence_control_email" class="ml16"/>
|
||||
<label for="hr_presence_control_email" class="o_light_label"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_hr_presence"/>
|
||||
<div class="text-muted" name="hr_presence_options_advanced">
|
||||
Presence reporting screen, email and IP address control.
|
||||
</div>
|
||||
<div class="d-flex mt-1" attrs="{'invisible': [('module_hr_presence', '=', False)]}">
|
||||
<field name="hr_presence_control_email" class="ml16"/>
|
||||
<label for="hr_presence_control_email" class="o_light_label"/>
|
||||
</div>
|
||||
<div class="d-flex ml32" attrs="{'invisible': ['|', ('module_hr_presence', '=', False), ('hr_presence_control_email', '=', False)]}">
|
||||
<span class="flex-shrink-0 ml8 me-2">Minimum number of emails to send</span>
|
||||
<field name="hr_presence_control_email_amount" class="ms-2 oe_inline"/>
|
||||
</div>
|
||||
<div class="d-flex" attrs="{'invisible': [('module_hr_presence', '=', False)]}">
|
||||
<field name="hr_presence_control_ip" class="ml16"/>
|
||||
<label for="hr_presence_control_ip" class="o_light_label"/>
|
||||
</div>
|
||||
<div class="d-flex ml32" attrs="{'invisible': ['|', ('module_hr_presence', '=', False), ('hr_presence_control_ip', '=', False)]}">
|
||||
<span class="flex-shrink-0 ml8 me-2">IP Addresses (comma-separated)</span>
|
||||
<field name="hr_presence_control_ip_list" class="ms-2 oe_inline"/>
|
||||
</div>
|
||||
<div class="d-flex" invisible="not module_hr_presence">
|
||||
<field name="hr_presence_control_ip" class="ml16"/>
|
||||
<label for="hr_presence_control_ip" class="o_light_label"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="enrich_employee_setting">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_hr_skills"/>
|
||||
</setting>
|
||||
<setting id="presence_reporting_setting"
|
||||
help="Define the minimum number of sent emails to be displayed as Present."
|
||||
title="Advanced presence of employees" string="Presence Condition"
|
||||
invisible="not module_hr_presence or not hr_presence_control_email">
|
||||
<div class="d-flex">
|
||||
<span class="flex-shrink-0 ml8 me-2">Sent Emails</span>
|
||||
<field name="hr_presence_control_email_amount" class="ms-2 oe_inline"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_hr_skills"/>
|
||||
<div class="text-muted">
|
||||
Enrich employee profiles with skills and resumes
|
||||
</div>
|
||||
</setting>
|
||||
<setting id="presence_reporting_setting"
|
||||
help="Define the allowed IP to be displayed as Present. In case of multiple addresses, separate them by a coma."
|
||||
title="Advanced presence of employees" string="Presence Condition"
|
||||
invisible="not module_hr_presence or not hr_presence_control_ip">
|
||||
<div class="d-flex">
|
||||
<span class="flex-shrink-0 ml8 me-2">IP Addresses</span>
|
||||
<field name="hr_presence_control_ip_list" class="ms-2 oe_inline"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Work Organization</h2>
|
||||
<div class="row mt16 o_settings_container" name="work_organization_setting_container">
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="default_company_schedule_setting">
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="resource_calendar_id"/>
|
||||
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." role="img" aria-label="Values set here are company-specific." groups="base.group_multi_company"/>
|
||||
<div class="row">
|
||||
<div class="text-muted col-lg-8">
|
||||
Set default company schedule to manage your employees working time
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<div class="mt16">
|
||||
<field name="resource_calendar_id" required="1"
|
||||
class="o_light_label"
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]"
|
||||
context="{'default_company_id': company_id}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Employee Update Rights</h2>
|
||||
<div class="row mt16 o_settings_container" name="employee_rights_setting_container">
|
||||
<div class="col-12 col-lg-6 o_setting_box" title="Allow employees to update their own data.">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="hr_employee_self_edit"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="hr_employee_self_edit"/>
|
||||
<div class="text-muted">
|
||||
Allow employees to update their own data
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
<setting invisible="not module_hr_presence or not (hr_presence_control_ip or hr_presence_control_email) or (hr_presence_control_ip and hr_presence_control_email)"
|
||||
help="This setting block is utilized to manage the frontend design."/>
|
||||
<setting help="Enrich employee profiles with skills and resumes" id="enrich_employee_setting">
|
||||
<field name="module_hr_skills"/>
|
||||
</setting>
|
||||
</block>
|
||||
<block title="Work Organization" name="work_organization_setting_container">
|
||||
<setting company_dependent="1" help="Set default company schedule to manage your employees working time" id="default_company_schedule_setting">
|
||||
<field name="resource_calendar_id" required="1" class="o_light_label"
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]"
|
||||
context="{'default_company_id': company_id}"/>
|
||||
</setting>
|
||||
</block>
|
||||
<block title="Contract" id="contract_work_permit_expiration_notify">
|
||||
<setting string="Contract Expiration Notice Period" id="contract_notice_period"
|
||||
title="Number of days prior to the contract end date that a contract expiration warning is triggered.">
|
||||
<field name="contract_expiration_notice_period" class="w-25"/><span>Days</span>
|
||||
</setting>
|
||||
<setting string="Work Permit Expiration Notice Period" id="work_permit_notice_period"
|
||||
title="Number of days prior to the work permit expiration date that a warning is triggered.">
|
||||
<field name="work_permit_expiration_notice_period" class="w-25"/><span>Days</span>
|
||||
</setting>
|
||||
</block>
|
||||
</app>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="hr_config_settings_action" model="ir.actions.act_window">
|
||||
<field name="name">Settings</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.config.settings</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">inline</field>
|
||||
<field name="context">{'module' : 'hr', 'bin_size': False}</field>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue