<?xml version="1.0"?>
<form string="Analytic Entry">
                    <sheet string="Analytic Entry">
                        <group>
                            <group>
                                <field name="readonly_timesheet" invisible="1"/>
                                <field name="project_id" options="{'no_create_edit': True}" context="{'search_default_my_projects': True}" required="1" readonly="readonly_timesheet"/>
                                <field name="task_id" widget="task_with_hours" options="{'no_create_edit': True}" context="{'default_project_id': project_id, 'search_default_my_tasks': True, 'search_default_open_tasks': True}" readonly="readonly_timesheet"/>
                                <field name="company_id" groups="base.group_multi_company" invisible="1"/>
                            </group>
                            <group>
                                <field name="date" readonly="readonly_timesheet"/>
                                <field name="amount" invisible="1"/>
                                <field name="unit_amount" string="Time Spent" widget="timesheet_uom" decoration-danger="unit_amount &gt; 24" readonly="readonly_timesheet" decoration-muted="unit_amount == 0"/>
                                <field name="currency_id" invisible="1"/>
                                <field name="company_id" invisible="1"/>
                            </group>
                        </group>
                        <field name="name" placeholder="Describe your activity" widget="text" nolabel="1" required="0" readonly="readonly_timesheet"/>
                    </sheet>
                </form>
            