Skip to content

[18.0][FIX] odoo_repository_migration: handle modules renamed/replaced multiple times#147

Open
sebalix wants to merge 4 commits into
OCA:18.0from
sebalix:18.0-odoo_repository_migration-fix-renamed-twice
Open

[18.0][FIX] odoo_repository_migration: handle modules renamed/replaced multiple times#147
sebalix wants to merge 4 commits into
OCA:18.0from
sebalix:18.0-odoo_repository_migration-fix-renamed-twice

Conversation

@sebalix
Copy link
Copy Markdown
Collaborator

@sebalix sebalix commented May 28, 2026

A module can be renamed/replaced multiple time between two Odoo versions, and the migration data should show the last relevant module.

Also, the computation of relevant migration data is automatically triggered when timelines are created/updated.

Ref. 24019

@sebalix sebalix added this to the 18.0 milestone May 28, 2026
@OCA-git-bot OCA-git-bot added series:18.0 mod:odoo_repository_migration Module odoo_repository_migration mod:odoo_repository Module odoo_repository mod:odoo_project_migration Module odoo_project_migration labels May 28, 2026
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch 2 times, most recently from 561e3b3 to c734ef8 Compare May 28, 2026 10:47
@sebalix sebalix marked this pull request as ready for review May 28, 2026 10:47
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch from 34fda46 to 0dc609e Compare May 28, 2026 11:56

def recompute_timeline_migration_data(env):
"""Recompute migration data related to timelines."""
timeline_model = env["odoo.module.branch"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
timeline_model = env["odoo.module.branch"]
timeline_model = env["odoo.module.branch.timeline"]

?

…iple times

A module can be renamed/replaced multiple time between two Odoo
versions, and the migration data should show the last relevant module.

Also, the computation of relevant migration data is automatically triggered
when timelines are created/updated.
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch from 0dc609e to 7abe4dc Compare May 28, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:odoo_project_migration Module odoo_project_migration mod:odoo_repository_migration Module odoo_repository_migration mod:odoo_repository Module odoo_repository series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants