<?xml version="1.0"?>
<data inherit_id="project.portal_my_task" name="Portal: My Task with Timesheets">
        <xpath expr="//div[@id='task-nav']" position="before">
            <div t-if="timesheets and allow_timesheets" class="d-grid flex-grow-1" id="nav-report">
                <a class="btn btn-light o_print_btn o_project_timesheet_print d-block" t-att-href="task.get_portal_url(report_type='pdf')" href="#" title="View Details" role="button" target="_blank"><i class="fa fa-print"/> View Details</a>
            </div>
        </xpath>
        <xpath expr="//li[@id='nav-header']" position="after">
            <div t-if="timesheets and allow_timesheets" class="nav-item">
                <a class="nav-link p-0" href="#task_timesheets">
                    Timesheets
                </a>
            </div>
        </xpath>
        <xpath expr="//div[@id='card_body']" position="inside">
            <div class="container" t-if="timesheets and allow_timesheets">
                <h5 id="task_timesheets" class="mt-2 mb-2" data-anchor="true">Timesheets</h5>
                <t t-call="hr_timesheet.portal_timesheet_table"/>
            </div>
        </xpath>
        <xpath expr="//div[@name='portal_my_task_allocated_hours']" position="after">
            <div t-if="task.allocated_hours &gt; 0 and allow_timesheets"><strong>Progress:</strong> <span t-esc="task.progress * 100" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;precision&quot;: 0}"/>%</div>
        </xpath>
        <xpath expr="//div[@name='portal_my_task_allocated_hours']/t" position="replace">
            <t t-call="hr_timesheet.portal_my_task_allocated_hours_template"/>
        </xpath>
    </data>

    