Migrate OCA module to 16.0
See Migration to version 16.0 for details.
Prepare
Set env vars.
export ODOO_CURRENT_VERSION=14.0
export ODOO_TARGET_VERSION=16.0
export REPO=survey
export MODULE=survey_question_type_nps
export USER_ORG=Mint-System
Fork the original repo to the user/org by opening https://github.com/OCA/$REPO/fork
.
Prepare repo for migration.
cd ~/Odoo-Build
task checkout $ODOO_TARGET_VERSION
git submodule add -f -b $ODOO_TARGET_VERSION git@github.com:OCA/$REPO.git oca/$REPO
Activate venv and navigate into the repo.
source task source
cd oca/$REPO
Migrate
Create the migration branch.
git checkout -b $ODOO_TARGET_VERSION-mig-$MODULE origin/$ODOO_TARGET_VERSION
git format-patch --keep-subject --stdout origin/$ODOO_TARGET_VERSION..origin/$ODOO_CURRENT_VERSION -- $MODULE | git am -3 --keep
Run pre commit checks.
pre-commit run -a
Resolve the issues.
Commit the pre commit checks.
git add -A
git commit -m "[IMP] $MODULE: pre-commit stuff" --no-verify
Follow Tasks to do in the migration to update the module.
Submission
Finalize the migration.
git add --all
git commit -m "[MIG] $MODULE: Migration to $ODOO_TARGET_VERSION"
Set remote and push.
git remote add $USER_ORG git@github.com:$USER_ORG/$REPO.git
git push $USER_ORG $ODOO_TARGET_VERSION-mig-$MODULE --set-upstream
Follow the link on the command line and submit the pull request.
echo "Title: [$ODOO_TARGET_VERSION][MIG] $MODULE: Migration to $ODOO_TARGET_VERSION"
echo "Description: Standard migration from $ODOO_CURRENT_VERSION to $ODOO_TARGET_VERSION."
Once submitted check the runboat checks.