Skip to content
Snippets Groups Projects
Commit dd0961ba authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[fix] error recompute

parent 1cdd7424
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,9 @@ class ProjectTask(models.Model):
for task in self:
if task.planned_hours > 0.0:
task_total_hours = task.effective_hours + task.subtask_effective_hours
if task_total_hours > task.planned_hours:
task.progress = round(
100.0 * task_total_hours / task.planned_hours, 2
)
task.progress = round(
100.0 * task_total_hours / task.planned_hours, 2
)
# ------------------------------------------------------
# Onchange / Constraints
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment