Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
antracite_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Antracite
antracite_project
Commits
dd0961ba
Commit
dd0961ba
authored
2 years ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[fix] error recompute
parent
1cdd7424
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/project_task.py
+3
-4
3 additions, 4 deletions
models/project_task.py
with
3 additions
and
4 deletions
models/project_task.py
+
3
−
4
View file @
dd0961ba
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment