[IMP] helpdesk_portal_timesheet : hide non billable timesheet from portal

This commit is contained in:
jscampucci
2025-09-03 15:50:50 +02:00
committed by LaetitiaElabore
parent 070193bea1
commit 6814938949
2 changed files with 17 additions and 15 deletions

View File

@@ -13,19 +13,21 @@
</tr>
</thead>
<tr t-foreach="timesheets" t-as="timesheet">
<td>
<t t-esc="timesheet.date" t-options='{"widget": "date"}'/>
</td>
<td t-attf-title="#{timesheet.employee_id.name}">
<t t-esc="timesheet.employee_id.name"/>
</td>
<td>
<t t-esc="timesheet.name"/>
</td>
<td class="text-end">
<span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/>
<span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/>
</td>
<t t-if="not timesheet.exclude_from_sale_order">
<td>
<t t-esc="timesheet.date" t-options='{"widget": "date"}'/>
</td>
<td t-attf-title="#{timesheet.employee_id.name}">
<t t-esc="timesheet.employee_id.name"/>
</td>
<td>
<t t-esc="timesheet.name"/>
</td>
<td class="text-end">
<span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/>
<span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/>
</td>
</t>
</tr>
<tfoot>
<tr>