<?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</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[@data-key='hr_timesheet']/div[hasclass('o_settings_container')]"
                position="inside"
            >
                <div class="col-12 col-lg-6 o_setting_box">
                    <div class="o_setting_left_pane">
                        <field name="use_timesheet_restriction" />
                    </div>
                    <div class="o_setting_right_pane">
                        <label
                            for="use_timesheet_restriction"
                            string="Auto-enable Timesheet restriction"
                        />
                        <div class="content-group">
                            <div class="mt16">
                            </div>
                        </div>
                    </div>

                    <div
                        class="o_setting_right_pane"
                        attrs="{'invisible': [('use_timesheet_restriction', '=', False)]}"
                    >
                        <label
                            for="timesheet_restriction_days"
                            string="Timesheet Restriction (days)"
                        />
                        <div class="content-group">
                            <div class="mt16">
                                <field name="timesheet_restriction_days" />
                            </div>
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>

</odoo>
