summaryrefslogtreecommitdiff
path: root/addons/project_timesheet_holidays/views/res_config_settings_views.xml
blob: 1b9aa047e348060bab0f4cc8a52d6d76b6c94ff3 (plain)
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
<?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.project.timesheet.holidays</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@id='module_project_timesheet_holidays']" position="replace">
                <div attrs="{'invisible': [('module_project_timesheet_holidays','=',False)]}">
                    <div class="row mt16">
                        <div class="w-100">
                            <label string="Project" for="leave_timesheet_project_id" class="col-3 col-lg-3 o_light_label"/>
                            <field name="leave_timesheet_project_id" context="{'active_test': False}" class="oe_inline"/>
                        </div>
                        <div class="w-100">
                            <label string="Task" for="leave_timesheet_task_id" class="col-3 col-lg-3 o_light_label"/>
                            <field name="leave_timesheet_task_id" context="{'active_test': False, 'default_project_id': leave_timesheet_project_id}" class="oe_inline"/>
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>

</odoo>