[FIX] project_working_time_task_portal: correction on portal task list display of billable hours
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<template id="portal_tasks_list_inherit" inherit_id="project.portal_tasks_list">
|
<template id="portal_tasks_list_inherit" inherit_id="hr_timesheet.portal_tasks_list_inherit">
|
||||||
<xpath expr="//thead/tr/th[7]" position="replace">
|
<xpath expr="//thead//t[@t-if='not project or project.allow_timesheets']/th[@class='text-end']" position="replace">
|
||||||
<th t-if="not is_uom_day" class="text-end">Billable Hours</th>
|
<th class="text-end">Billable hours</th>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//tbody/t/tr/td[7]" position="replace">
|
<xpath expr="//tbody//td[@t-if='not project or project.allow_timesheets']" position="replace">
|
||||||
<td class="text-end">
|
<td t-if="not project or project.allow_timesheets" class="text-end">
|
||||||
<t t-if="not is_uom_day">
|
<t t-if="task.allow_timesheets and not is_uom_day">
|
||||||
<span t-field="task.billable_effective_hours"
|
<span t-field="task.billable_effective_hours"
|
||||||
t-options='{"widget": "float_time"}' />
|
t-options='{"widget": "float_time"}' />
|
||||||
<t t-if="task.allocated_hours > 0"> / <span t-field="task.allocated_hours"
|
<t t-if="task.allocated_hours > 0"> / <span t-field="task.allocated_hours"
|
||||||
|
|||||||
Reference in New Issue
Block a user