| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="res_config_settings_view_form" model="ir.ui.view"> |
| 5 |
<field name="name">res.config.settings.view.form.inherit.project.timesheet.holidays</field> |
| 6 |
<field name="model">res.config.settings</field> |
| 7 |
<field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//setting[@id='timesheet_off_validation_setting']" position="inside"> |
| 10 |
<div invisible="not module_project_timesheet_holidays"> |
| 11 |
<div class="row mt16"> |
| 12 |
<div class="w-100"> |
| 13 |
<label string="Project" for="internal_project_id" class="col-2 col-lg-3"/> |
| 14 |
<field name="internal_project_id" context="{'active_test': False, 'default_company_id': company_id}" class="oe_inline ml16"/> |
| 15 |
</div> |
| 16 |
<div class="w-100"> |
| 17 |
<label string="Task" for="leave_timesheet_task_id" class="col-2 col-lg-3"/> |
| 18 |
<field name="leave_timesheet_task_id" context="{'active_test': False, 'default_project_id': internal_project_id}" class="oe_inline ml16"/> |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
</xpath> |
| 23 |
</field> |
| 24 |
</record> |
| 25 |
|
| 26 |
</odoo> |