diff --git a/addons/hr_timesheet/models/project_task.py b/addons/hr_timesheet/models/project_task.py index dee648f593b..15e2a5e229f 100644 --- a/addons/hr_timesheet/models/project_task.py +++ b/addons/hr_timesheet/models/project_task.py @@ -78,10 +78,7 @@ class Task(models.Model): if (task.planned_hours > 0.0): task_total_hours = task.effective_hours + task.subtask_effective_hours task.overtime = max(task_total_hours - task.planned_hours, 0) - if task_total_hours > task.planned_hours: - task.progress = 100 - else: - task.progress = round(100.0 * task_total_hours / task.planned_hours, 2) + task.progress = round(100.0 * task_total_hours / task.planned_hours, 2) else: task.progress = 0.0 task.overtime = 0 diff --git a/addons/hr_timesheet/views/project_task_sharing_views.xml b/addons/hr_timesheet/views/project_task_sharing_views.xml index 34ff3077ab7..2b590d785fd 100644 --- a/addons/hr_timesheet/views/project_task_sharing_views.xml +++ b/addons/hr_timesheet/views/project_task_sharing_views.xml @@ -12,7 +12,7 @@ - + diff --git a/addons/hr_timesheet/views/project_task_views.xml b/addons/hr_timesheet/views/project_task_views.xml index 694e08a97b2..2a58154e6f4 100644 --- a/addons/hr_timesheet/views/project_task_views.xml +++ b/addons/hr_timesheet/views/project_task_views.xml @@ -12,7 +12,7 @@ - + @@ -149,7 +149,7 @@ - + @@ -168,7 +168,7 @@ - +