Skip to content

Commit

Permalink
[14.0][FIX] project_milestone : Wrong assignment of tasks to mileston…
Browse files Browse the repository at this point in the history
…es when duplicating a project OCA#1283
  • Loading branch information
abenzbiria committed May 20, 2024
1 parent b9157bd commit 925608a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_milestone/tests/test_project_milestone.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ def test_copy_project(self):
project = self.test_project.copy({})
tasks = project.with_context(active_test=False).task_ids
milestone = project.milestone_ids.filtered(
lambda milestone: "2" not in milestone.name)
lambda milestone: "2" not in milestone.name
)
assert tasks[0].milestone_id == milestone and tasks[1].milestone_id == milestone

0 comments on commit 925608a

Please sign in to comment.