Files
enterprise-addons/documents_hr/views/res_config_settings_views.xml
T

45 lines
2.6 KiB
XML

<?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.documents</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="70"/>
<field name="inherit_id" ref="documents.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//app[@name='documents']" position="attributes">
<attribute name="notApp">0</attribute>
</xpath>
<xpath expr="//block[@id='files_centralization_section']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//block[@id='files_centralization_section']" position="inside">
<setting company_dependent="1" help="Centralize your employees' documents (contracts, payslips, etc.)">
<field name="documents_hr_settings"/>
<div class="content-group" invisible="not documents_hr_settings">
<div class="row mt16">
<label class="o_form_label col-lg-3" for="documents_employee_folder_id" string="Employees Folder"/>
<field name="documents_employee_folder_id" widget="documents_folder_many2one"
options="{'no_create': True, 'no_create_edit': True}"/>
</div>
<div class="row mt16">
<div class="col-lg-3 d-flex align-items-center">
<label class="o_form_label" for="employee_subfolders" string="Employees Subfolders"/>
<div class="fa fa-question-circle" title="Comma separated list of folder names that need to be created under each employee folder."/>
</div>
<field name="employee_subfolders"/>
</div>
</div>
<div id="documents_hr_tags" class="mt-3">
<div class="row" invisible="not documents_hr_settings">
<span class="o_form_label">Default tags</span>
<label for="documents_hr_contracts_tags" class="col-sm-3 o_light_label"/>
<field name="documents_hr_contracts_tags"
widget="many2many_tags"/>
</div>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>