flectra/addons/hr/views/res_config_settings_views.xml

66 lines
3.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.hr</field>
<field name="model">res.config.settings</field>
<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>Work Organization</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<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." groups="base.group_multi_company"/>
<div class="row">
<div class="text-muted col-md-8">
Set default calendar used to compute time allocation for leaves, timesheets, ...
</div>
</div>
<div class="content-group">
<div class="mt16">
<field name="resource_calendar_id"
class="o_light_label"
domain="[('company_id', '=', company_id)]"
context="{'default_company_id': company_id}"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box" title="Show organizational chart on employee form">
<div class="o_setting_left_pane">
<field name="module_hr_org_chart"/>
</div>
<div class="o_setting_right_pane">
<label for="module_hr_org_chart"/>
<div class="text-muted">
Show organizational chart on employee form.
</div>
</div>
</div>
</div>
</div>
</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'}</field>
</record>
<menuitem id="hr_menu_configuration"
name="Settings"
parent="menu_human_resources_configuration"
sequence="0"
action="hr_config_settings_action"
groups="base.group_system"/>
2018-01-16 11:34:37 +01:00
</flectra>