Skip to content

Migrate a Mint System module

Prepare

Set env vars.

source_version=17.0
target_version=18.0
repo=server_tools
module=mail_server_filter
  • Checkout the new Odoo version in Odoo Build:
task checkout $target_version
  • Checkout the module from the previous version:
cd addons/$repo
git checkout $source_version $module

Migrate

task migrate-module addons/$repo/$module
  • Update the module docs:
task generate-module-docs addons/$repo/$module
  • Install and test the module:
task init-module addons/$repo/$module
task test-module addons/$repo/$module
  • Lint the repo and update the docs:
cd addons/$repo/
task all
  • Create test instructions (see Odoo Module Test Instructions in the Mint System Wiki)

Commit

  • Commit the migration:
git -C addons/$repo add --all
git -C addons/$repo commit -m "feat($module): migrate"
  • Optionally create a pull request:
    • Create a feature branch git switch -c mig-$module
    • Create a PR with the CLI gh pr create
    • Once the PR is merged, deploy the submodule repo
  • Push the changes:
git -C addons/$repo push