-
-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy pathres_config_settings_views.xml
More file actions
51 lines (51 loc) · 2.23 KB
/
Copy pathres_config_settings_views.xml
File metadata and controls
51 lines (51 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--
Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.hr.timesheet</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="55" />
<field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//block[@name='timesheet_control']" position="after">
<block title="Timesheet Options" name="hr_timesheet_sheet_settings">
<setting
help="Choose which timesheet sheet ranges should be used by default"
company_dependent="1"
>
<field name="sheet_range" required="1" />
</setting>
<setting
help="Choose the week start day."
invisible="sheet_range != 'WEEKLY'"
company_dependent="1"
>
<field
name="timesheet_week_start"
required="sheet_range == 'WEEKLY'"
/>
</setting>
<setting
help="Choose timesheet sheets review policy."
company_dependent="1"
>
<field
name="timesheet_sheet_review_policy"
widget="radio"
required="1"
/>
</setting>
<setting
help="Choose an employee field pointing to a user. That user can review the employee's timesheet sheets."
company_dependent="1"
>
<field name="timesheet_sheet_approver_field_id" />
</setting>
</block>
</xpath>
</field>
</record>
</odoo>