Skip to content

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

Merged
OCA-git-bot merged 8 commits into
OCA:18.0from
sebalix:18.0-odoo_repository_migration-fix-renamed-twice
Jun 13, 2026
Merged

[18.0][FIX] odoo_repository_migration: handle modules renamed/replaced multiple times#147
OCA-git-bot merged 8 commits into
OCA:18.0from
sebalix:18.0-odoo_repository_migration-fix-renamed-twice

Conversation

@sebalix

@sebalix sebalix commented May 28, 2026

Copy link
Copy Markdown
Collaborator

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 (collected & projects) is automatically triggered when timelines or modules 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
Comment thread odoo_repository_migration/migrations/18.0.1.1.0/post-migrate.py Outdated
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch from 0dc609e to 7abe4dc Compare May 28, 2026 14:48
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch 4 times, most recently from 9d9363b to 9683fbb Compare June 4, 2026 08:20
Comment thread odoo_repository_migration/migrations/18.0.1.1.0/post-migrate.py Outdated
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch 2 times, most recently from f518b73 to 9c96f34 Compare June 10, 2026 10:46

@hparfr hparfr left a comment

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.

Thanks for this work !

All issues solved

@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch from 9c96f34 to f61cdf2 Compare June 13, 2026 12:47
sebalix added 8 commits June 13, 2026 14:52
…scan()'

Set explicit source and target branches.
In `_scan_migration_module`, ensure a migration record exists for
replaced modules.
…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.

A convenient "Scan" button has been added on timeline form to trigger a
scan on relevant modules if needed, as well as a "Migrations" smart
button to access related migration data records.
@sebalix sebalix force-pushed the 18.0-odoo_repository_migration-fix-renamed-twice branch from f61cdf2 to a30d480 Compare June 13, 2026 12:52
@sebalix

sebalix commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-147-by-sebalix-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 1e78bb7 into OCA:18.0 Jun 13, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 393e876. Thanks a lot for contributing to OCA. ❤️

@sebalix sebalix deleted the 18.0-odoo_repository_migration-fix-renamed-twice branch June 13, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged 🎉 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