Skip to content

Commit

Permalink
project_workload: add view to see load, automatically set done load w…
Browse files Browse the repository at this point in the history
…hen the task is closed
  • Loading branch information
sebastienbeau authored and paradoxxxzero committed Oct 8, 2024
1 parent 48982c2 commit 4ef865e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project_workload_timesheet/models/project_workload_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class ProjectWorkloadUnit(models.Model):
)

@api.depends("force_done")
def _compute_done(self):
return super()._compute_done()

def is_done(self):
return super().is_done() or self.force_done

Expand Down

0 comments on commit 4ef865e

Please sign in to comment.