| 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.timesheet</field> |
| 5 |
<field name="model">res.config.settings</field> |
| 6 |
<field name="priority" eval="55"/> |
| 7 |
<field name="inherit_id" ref="base.res_config_settings_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//form" position="inside"> |
| 10 |
<app data-string="Timesheets" string="Timesheets" name="hr_timesheet" groups="hr_timesheet.group_timesheet_manager" id="timesheets"> |
| 11 |
<block title="Time Encoding" name="time_encoding_setting_container"> |
| 12 |
<setting id="time_mode_setting" company_dependent="1" invisible="project_time_mode_id"> |
| 13 |
<field name="project_time_mode_id" options="{'no_create': True, 'no_open': True}"/> |
| 14 |
</setting> |
| 15 |
<setting company_dependent="1" help="Time unit used to record your timesheets" id="time_unit_timesheets_setting"> |
| 16 |
<field name="timesheet_encode_method" class="col-lg-5 ps-0" widget="radio"/> |
| 17 |
<field name="is_encode_uom_days" invisible="1"/> |
| 18 |
</setting> |
| 19 |
</block> |
| 20 |
<block title="Timesheets Control"> |
| 21 |
<setting id="reminder_user_allow" company_dependent="1" help="Send a periodical email reminder to timesheets users that still have timesheets to encode"> |
| 22 |
<field name="reminder_user_allow" widget="upgrade_boolean"/> |
| 23 |
</setting> |
| 24 |
<setting id="reminder_allow" company_dependent="1" help="Send a periodical email reminder to timesheets approvers that still have timesheets to validate"> |
| 25 |
<field name="reminder_allow" widget="upgrade_boolean"/> |
| 26 |
</setting> |
| 27 |
</block> |
| 28 |
<div name="section_leaves"> |
| 29 |
<block title="Time Off" name="timesheet_control"> |
| 30 |
<setting company_dependent="1" documentation="/applications/services/timesheets/time_off.html" help="Generate timesheets for validated time off requests and public holidays" id="timesheet_off_validation_setting"> |
| 31 |
<field name="module_project_timesheet_holidays"/> |
| 32 |
</setting> |
| 33 |
</block> |
| 34 |
</div> |
| 35 |
</app> |
| 36 |
</xpath> |
| 37 |
</field> |
| 38 |
</record> |
| 39 |
|
| 40 |
<record id="hr_timesheet_config_settings_action" model="ir.actions.act_window"> |
| 41 |
<field name="name">Settings</field> |
| 42 |
<field name="res_model">res.config.settings</field> |
| 43 |
<field name="view_mode">form</field> |
| 44 |
<field name="context">{'module' : 'hr_timesheet', 'bin_size': False}</field> |
| 45 |
</record> |
| 46 |
</odoo> |