From ffdf10339f40e0f449e079398ce7ca679c041dff Mon Sep 17 00:00:00 2001 From: Barad Mahendra Date: Wed, 2 Nov 2022 04:47:06 +0000 Subject: [PATCH] [FIX] hr_timesheet: fix the remaining hours label on project sharing Before this commit, when remaining hours is negative then it the label was displayed as muted instead of danger. So in this commit, display the label danger when remaning hours are negative. task-3014420 closes odoo/odoo#106815 X-original-commit: c06aa5331eda0408453552a304170ee0bf027a4d Related: odoo/enterprise#34504 Signed-off-by: Xavier Bol (xbo) --- addons/hr_timesheet/views/project_sharing_views.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/hr_timesheet/views/project_sharing_views.xml b/addons/hr_timesheet/views/project_sharing_views.xml index 13001641ec4..2b6584b5fff 100644 --- a/addons/hr_timesheet/views/project_sharing_views.xml +++ b/addons/hr_timesheet/views/project_sharing_views.xml @@ -99,9 +99,13 @@ attrs="{'invisible' : ['|', ('allow_subtasks', '=', False), ('subtask_effective_hours', '=', 0.0)]}" />