Skip to main content

Manage Versions of module along all odoo version

Project description

odoo-version-manager

Helps handling updates on main branch of a module to be deployed to all sub branches. It uses github workflows to accomplish this.

installing

pipx install odoo-version-manager
odoo-version-manager install-completion

usage

initial setup

  • create a repository like an OCA repository with some modules on branch main
  • decide which version the main branch is for example 16.0 and store it:
mkdir -p .github
echo 16.0 > .github/version_behind_main_branch
odoo-version-manager setup

setup takes an optional runner label for the generated github workflow (self-hosted or ubuntu-latest, default: ubuntu-latest). It is stored persistently in the settings file:

odoo-version-manager setup self-hosted

settings file

Settings are stored per repository in .github/odoo-version-manager.settings.json (created automatically on first run):

{"runs_on": "ubuntu-latest"}
  • runs_on: runner label used in the generated deploy workflow. Use self-hosted if the SSH_PRIVATE_KEY secret should never leave your own infrastructure.

The generated workflow requires the repository secret SSH_PRIVATE_KEY to push to the version branches.

set another odoo version for main branch

If you move on and main branch becomes odoo version 18.0 instead of 16.0 do the following:

git checkout main
git reset --hard origin/18.0
vi .github/version_behind_main_branch and set 18.0 there
odoo-version-manager setup

rebase all branches

If there are merge conflicts you must manually help the branches to pass there new commits from one to the other. It is advised to use the -r option to reduce the commits from one branch to the other to make it easier the next time to resolve merge conflicts.

odoo-version-manager rebase -r

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoo_version_manager-0.0.24.tar.gz (17.4 kB view details)

Uploaded Source

File details

Details for the file odoo_version_manager-0.0.24.tar.gz.

File metadata

  • Download URL: odoo_version_manager-0.0.24.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for odoo_version_manager-0.0.24.tar.gz
Algorithm Hash digest
SHA256 fe712d41702a1a77cfd6f4fec47b039c23f18bbbaa290eeaa132e11106d89454
MD5 5e7c70ce10e9bd11ea3dd6bf1c4df48a
BLAKE2b-256 876e48e7a4965353d97e58854bd512cd30bfcceb8dc069979a28273e98f6a683

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page