[FIX] project_working_time_task_portal: correction on portal task list display of billable hours

This commit is contained in:
Stéphan Sainléger
2026-05-19 14:50:15 +02:00
parent 1664bb043a
commit d53ba8bd64

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="portal_tasks_list_inherit" inherit_id="project.portal_tasks_list">
<xpath expr="//thead/tr/th[7]" position="replace">
<th t-if="not is_uom_day" class="text-end">Billable Hours</th>
<template id="portal_tasks_list_inherit" inherit_id="hr_timesheet.portal_tasks_list_inherit">
<xpath expr="//thead//t[@t-if='not project or project.allow_timesheets']/th[@class='text-end']" position="replace">
<th class="text-end">Billable hours</th>
</xpath>
<xpath expr="//tbody/t/tr/td[7]" position="replace">
<td class="text-end">
<t t-if="not is_uom_day">
<xpath expr="//tbody//td[@t-if='not project or project.allow_timesheets']" position="replace">
<td t-if="not project or project.allow_timesheets" class="text-end">
<t t-if="task.allow_timesheets and not is_uom_day">
<span t-field="task.billable_effective_hours"
t-options='{"widget": "float_time"}' />
<t t-if="task.allocated_hours > 0"> / <span t-field="task.allocated_hours"
@@ -16,4 +16,4 @@
</td>
</xpath>
</template>
</odoo>
</odoo>