<?xml version="1.0"?>
<data><xpath expr="//templates" position="before">
                    <field name="allow_timesheets"/>
                    <field name="remaining_hours"/>
                    <field name="encode_uom_in_days"/>
                    <field name="allocated_hours"/>
                </xpath>
                <xpath expr="//div[@name='card_menu_view']" position="inside">
                    <div role="menuitem" t-if="record.allow_timesheets.raw_value" groups="hr_timesheet.group_hr_timesheet_user">
                        <a name="action_project_timesheets" type="object">Timesheets</a>
                    </div>
                </xpath>
                <xpath expr="//div[hasclass('o_project_kanban_boxes')]" position="after">
                    <t t-set="badgeColor" t-value="'border-success'"/>
                    <t t-set="badgeColor" t-value="'border-danger'" t-if="record.remaining_hours.raw_value &lt; 0"/>
                    <t t-set="title" t-value="'Days Remaining'" t-if="record.encode_uom_in_days.raw_value"/>
                    <t t-set="title" t-value="'Time Remaining'" t-else=""/>
                    <div t-if="record.allow_timesheets.raw_value and record.allocated_hours.raw_value &gt; 0" t-attf-class="me-1 ms-1 bg-transparent badge border {{ badgeColor }}" t-att-title="title" groups="hr_timesheet.group_hr_timesheet_user">
                        <field name="remaining_hours" widget="timesheet_uom" class="p-0"/>
                    </div>
                </xpath>
            </data>