[REF]project_working_time_task_portal

This commit is contained in:
2025-04-22 11:43:30 +02:00
parent 204a6a7647
commit 1da31fa1c2
3 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "project_working_time_task_portal",
"version": "16.0.1.0.2",
"version": "16.0.1.0.3",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Boris Gallet",

View File

@@ -37,6 +37,7 @@ class Task(models.Model):
string="Subtask Billable Effective Hours",
store=True,
compute_sudo=True,
recursive=True,
)
@api.depends('timesheet_ids.unit_amount')

View File

@@ -1,12 +1,10 @@
<?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"/>
<xpath expr="//thead/tr/th[last()]" position="before">
<xpath expr="//thead/tr/th[7]" position="replace">
<th t-if="not is_uom_day" class="text-end">Billable Hours</th>
</xpath>
<xpath expr="//tbody/t/tr/td[7]" position="replace"/>
<xpath expr="//tbody/t/tr/td[last()]" position="before">
<xpath expr="//tbody/t/tr/td[7]" position="replace">
<td class="text-end">
<t t-if="not is_uom_day">
<span t-field="task.billable_effective_hours"