| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="res_config_settings_view_form" model="ir.ui.view"> |
| 4 | <field name="name">res.config.settings.view.form.inherit.hr</field> |
| 5 | <field name="model">res.config.settings</field> |
| 6 | <field name="priority" eval="70"/> |
| 7 | <field name="inherit_id" ref="base.res_config_settings_view_form"/> |
| 8 | <field name="arch" type="xml"> |
| 9 | <block name="work_organization_setting_container" position="after"> |
| 10 | <field name="company_country_code" invisible="1"/> |
| 11 | <block title="French Time Off Localization" invisible="company_country_code != 'FR'"> |
| 12 | <setting company_dependent="1" help="Set the time off type used as the company Paid Time Off to compute part-timers leave duration"> |
| 13 | <field name="l10n_fr_reference_leave_type" |
| 14 | class="o_light_label" |
| 15 | domain="[('company_id', 'in', [company_id, False])]" |
| 16 | context="{'default_company_id': company_id}" required="company_country_code == 'FR'"/> |
| 17 | </setting> |
| 18 | </block> |
| 19 | </block> |
| 20 | </field> |
| 21 | </record> |
| 22 | |
| 23 | <menuitem id="hr_holidays_menu_configuration" |
| 24 | name="Settings" |
| 25 | parent="hr_holidays.menu_hr_holidays_configuration" |
| 26 | sequence="10" |
| 27 | action="hr.hr_config_settings_action" |
| 28 | groups="base.group_system"/> |
| 29 | </odoo> |