Skip to content

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

Open
sebalix wants to merge 10 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 10 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
In `_scan_migration_module`, ensure a migration record exists for
replaced modules.
@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 from 9683fbb to 0f6fb7a Compare June 4, 2026 08:48
sebalix added 6 commits June 8, 2026 11:55
…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 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

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