[CLN] lint commit

This commit is contained in:
jscampucci
2025-09-03 15:49:26 +02:00
committed by LaetitiaElabore
parent 63bb355444
commit 070193bea1

View File

@@ -13,9 +13,15 @@
</tr> </tr>
</thead> </thead>
<tr t-foreach="timesheets" t-as="timesheet"> <tr t-foreach="timesheets" t-as="timesheet">
<td><t t-esc="timesheet.date" t-options='{"widget": "date"}'/></td> <td>
<td t-attf-title="#{timesheet.employee_id.name}"><t t-esc="timesheet.employee_id.name"/></td> <t t-esc="timesheet.date" t-options='{"widget": "date"}'/>
<td><t t-esc="timesheet.name"/></td> </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"> <td class="text-end">
<span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options='{"widget": "timesheet_uom"}'/> <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"}'/> <span t-else="" t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/>
@@ -26,8 +32,14 @@
<th colspan="3"></th> <th colspan="3"></th>
<th class="text-end"> <th class="text-end">
<t t-set="timesheets_amount" t-value="round(sum(timesheets.mapped('unit_amount')), 2) or 0.0"></t> <t t-set="timesheets_amount" t-value="round(sum(timesheets.mapped('unit_amount')), 2) or 0.0"></t>
<div t-if="is_uom_day"><strong>Days Spent:</strong> <span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/></div> <div t-if="is_uom_day">
<div t-else=""><strong>Hours Spent:</strong> <span t-esc="timesheets_amount" t-options='{"widget": "float_time"}'/></div> <strong>Days Spent:</strong>
<span t-esc="timesheets._convert_hours_to_days(timesheets_amount)" t-options='{"widget": "timesheet_uom"}'/>
</div>
<div t-else="">
<strong>Hours Spent:</strong>
<span t-esc="timesheets_amount" t-options='{"widget": "float_time"}'/>
</div>
</th> </th>
</tr> </tr>
</tfoot> </tfoot>