<?xml version="1.0" encoding="utf-8" ?>
<odoo>

    <record id="edit_project" model="ir.ui.view">
        <field name="name">project.project.view.form</field>
        <field name="model">project.project</field>
        <field name="inherit_id" ref="project.edit_project" />
        <field name="arch" type="xml">
            <xpath expr="//group[@name='group_time_managment']" position="inside">
                <div>
                    <label
                        for="use_timesheet_restriction"
                        string="Use timesheet restriction"
                    />
                    <field name="use_timesheet_restriction" />
                </div>
                <div attrs="{'invisible': [('use_timesheet_restriction', '=', False)]}">
                    <label
                        for="timesheet_restriction_days"
                        string="Timesheet Restriction (days):"
                    />
                    <field name="timesheet_restriction_days" />
                </div>
            </xpath>
        </field>
    </record>

</odoo>
