<?xml version="1.0"?>
<xpath expr="//field[@name='date']" position="after">
                    <field name="allow_timesheets" column_invisible="1"/>
                    <field name="allocated_hours" widget="timesheet_uom_no_toggle" optional="hide" invisible="allocated_hours == 0 or not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
                    <field name="effective_hours" widget="timesheet_uom_no_toggle" optional="hide" invisible="effective_hours == 0 or not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
                    <field name="remaining_hours" widget="timesheet_uom_no_toggle" decoration-danger="remaining_hours &lt; 0" decoration-warning="allocated_hours &gt; 0 and (remaining_hours / allocated_hours) &lt; 0.2" optional="hide" invisible="allocated_hours == 0 or not allow_timesheets" groups="hr_timesheet.group_hr_timesheet_user"/>
                </xpath>
            