[FIX] project: fix allocated time label in portal
Steps to Reproduce - open project - create a project and allow timesheet - open timesheet and change encoding method to days/half days - create a task in the project and set allocated time - open portal view of the task Issue - There is no label for allocated time. Cause - Condition was added in this commit 82a85d42c86cffcd6e96b0712c8ff9a221f25d87 to show the label if encoding method is not in days. Fix - We apply the label for both encoding method of timesheet. task-3761269 closes odoo/odoo#159939 X-original-commit: d7140c14d29d7e667a11dd0f92fe07117044feed Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com> Signed-off-by: Dheeraj Pandey (padh) <padh@odoo.com>
This commit is contained in:
@@ -244,6 +244,7 @@
|
||||
<div t-if="task.date_deadline"><strong>Deadline:</strong> <span t-field="task.date_deadline" t-options='{"widget": "datetime"}'/></div>
|
||||
<div t-if="task.milestone_id and task.allow_milestones"><strong>Milestone:</strong> <span t-field="task.milestone_id"/></div>
|
||||
<div name="portal_my_task_allocated_hours">
|
||||
<strong t-if="task.allocated_hours > 0">Allocated Time:</strong>
|
||||
<t t-call="project.portal_my_task_allocated_hours_template"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -289,7 +290,7 @@
|
||||
</template>
|
||||
|
||||
<template id="portal_my_task_allocated_hours_template">
|
||||
<strong t-if="task.allocated_hours > 0">Allocated Time:</strong>
|
||||
<strong t-if="task.allocated_hours > 0" class="d-none">Allocated Time:</strong>
|
||||
<span t-out="task.allocated_hours" t-options='{"widget": "float_time"}'/>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user