diff --git a/project_workload_milestone/models/project_task.py b/project_workload_milestone/models/project_task.py index ab1549ac..efc86d32 100644 --- a/project_workload_milestone/models/project_task.py +++ b/project_workload_milestone/models/project_task.py @@ -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