- <xpath expr="//h4[@id='list']" position="inside">
- <a>
- <t t-if="record.timesheets.raw_value">
- <button name="open_timesheets" class="oe_project_buttons" type="object"><t t-if="record.total_timesheet.value <= 1"> Timesheet</t><t t-if="record.total_timesheet.value > 1"> Timesheets</t>(<t t-esc="record.total_timesheet.value"/>)</button>
- </t>
- </a>
- </xpath>
-
- <xpath expr="//tr[@id='deadline']" position="before">
- <tr >
- <th align="left">To invoice</th>
- <td align="left">
- <field name="amt_to_invoice"/> <t t-esc="record.currency_id.raw_value[1].split(' ')[1][1]"/>
- </td>
- </tr>
- <tr>
- <th align="left">To hours</th>
- <td align="left">
- <field name="hrs_to_invoice"/> h
- </td>
- </tr>
- </xpath>
+ <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
+ <a t-if="record.use_timesheets.raw_value"
+ name="open_timesheets" type="object">Timesheets(<field name="timesheet_count"/>)</a>
+ </xpath>
+ <xpath expr="//div[contains(@class, 'oe_kanban_project_deadline')]" position="before">
+ <div class="oe_kanban_project_fields oe_kanban_project_invoice" t-if="record.partner_id.raw_value">
+ <div>Amount to invoice</div>
+ <div><field name="amount_to_invoice"/> <t t-esc="record.currency_id.raw_value[1].split(' ')[1][1]"/></div>
+ <div>Time to Invoice</div>
+ <div><field name="time_to_invoice"/> <field name="company_uom_id"/></div>
+ </div>
+ </xpath>