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

    <template id="report_invoice_document_inherit" inherit_id="timesheet_invoice.report_invoice_document_inherit">
        <xpath expr="//tr[@t-as='timesheet']/td[last()]" position="replace">
            <td class="text-right" t-if="not timesheet.work_type_id or timesheet.work_billing_rate == 1.0">
                <span t-field="timesheet.unit_amount" t-options="{&quot;widget&quot;: &quot;duration&quot;, &quot;unit&quot;: &quot;hour&quot;, &quot;round&quot;: &quot;minute&quot;}"/>
            </td>
            <td class="text-right" t-else="">
                <del t-field="timesheet.unit_amount" class="text-muted" t-options="{&quot;widget&quot;: &quot;duration&quot;, &quot;unit&quot;: &quot;hour&quot;, &quot;round&quot;: &quot;minute&quot;}"/>
                <br/>
                <span t-field="timesheet.work_billing_amount" t-options="{&quot;widget&quot;: &quot;duration&quot;, &quot;unit&quot;: &quot;hour&quot;, &quot;round&quot;: &quot;minute&quot;}"/>
            </td>
        </xpath>
    </template>

</odoo>
