Migrate OCA module to XX.0¶
The OCA has a migration guide for every major version.
- Migration to version 16.0
- Migration to version 17.0
- Migration to version 18.0
- Migration to version 19.0
This document show how to a module migration happens with the help of Odoo Build.
Prepare¶
Set env vars.
source_version=18.0
target_version=19.0
repo=account-analytic
module=product_analytic
user_org=Mint-System
Migrate¶
Prepare the migration branch for the module.
Migrate the module.
Follow migration guide to update the module:
- Migration to verison 16.0 - Tasks to do in the migration
- Migration to verison 17.0 - Tasks to do in the migration
- Migration to verison 18.0 - Tasks to do in the migration
- Migration to verison 19.0 - Tasks to do in the migration
Start the Odoo environment and install the module.
Run the module tests.
Commit the migration.
task run-pre-commit "oca/$repo"
task status-git-folder "oca/$repo"
task stage-git-folder "oca/$repo"
task commit-git-folder "oca/$repo" "[MIG] $module: Migration to $target_version"
Submit¶
Push to remote.
Create a pull request
gh repo set-default origin
gh pr create \
--repo "OCA/${repo}" \
--head "${user_org}:${target_version}-mig-${module}" \
--base "${target_version}" \
--title "[${target_version}][MIG] ${module}: Migration to ${target_version}" \
--body "Standard migration from ${source_version} to ${target_version}." \
--web
Once submitted check the runboat checks.
Backlinks