OCA / project

Odoo Project Management and Services Company Addons
https://odoo-community.org/psc-teams/project-service-28
GNU Affero General Public License v3.0
275 stars 775 forks source link

[14.0] project_milestone : Wrong assignment of tasks to milestones when duplicating a project #1283

Open abenzbiria opened 4 months ago

abenzbiria commented 4 months ago

When a project is copied, its milestones and tasks are copied as well.

The problem is that the copied tasks are linked to milestones in the old project instead of the new one.

Module

project_milestone

Describe the bug

The module project_milestone allows to define milestones for a project.

Multiple tasks in the project can be linked to a given milestone.

When a project is copied, its milestones and tasks are copied as well.

The problem is that the copied tasks are linked to milestones in the old project instead of the new one.

To Reproduce

14.0 and 12.0:

Steps to reproduce the behavior: 1.Activate the use of milestones in a created project 01_Project

  1. Create new milestones 3.Create tasks and link them to milestones created in step 2

02-Project-Task-Groupby-Milestones

4- Duplicate the project with the created milestones and tasks 03-Duplicated-Project

5- Milestones and tasks are well duplicated . Add (copy) as suffix name to the duplicated milestones

04_Milestones_by_project

6- Nevertheless, tasks are assigned to old milestones not to the duplicated ones 05_Copied_Task_Assigned_to_Olds_Milestones

Expected behavior Copied tasks should be linked to the copied milestones when duplicating a project.