[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", "name": "project_working_time_task_portal",
"version": "16.0.1.0.2", "version": "16.0.1.0.3",
"author": "Elabore", "author": "Elabore",
"website": "https://elabore.coop", "website": "https://elabore.coop",
"maintainer": "Boris Gallet", "maintainer": "Boris Gallet",

View File

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

View File

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