Skip to content

Commit

Permalink
[FIX] project_workload_milestone: project.task date_start, date_end r…
Browse files Browse the repository at this point in the history
…enames

See: OCA/project@55460f8
  • Loading branch information
paradoxxxzero committed Oct 7, 2024
1 parent 987442b commit f28badf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_workload_milestone/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def _prepare_task_dates_vals_from_milestone(self, vals):
if "milestone_id" in vals:
milestone = self.env["project.milestone"].browse(vals["milestone_id"])
if milestone:
vals["date_end"] = milestone.deadline
vals["date_start"] = milestone.start_date
vals["planned_date_end"] = milestone.deadline
vals["planned_date_start"] = milestone.start_date
return vals

@api.model
Expand Down

0 comments on commit f28badf

Please sign in to comment.