Zum Inhalt

Playbook Upgrade Odoo.sh XX.0

The playbook supports two modes: test and production. When executing the production mode you have to set the env vars for the production branch.

Prepare πŸ“

Set env vars for the Odoo.sh branch.

export HOST="example.odoo.com"
export ODOO_DATABASE="example-upgrade-17425638"
export ODOO_URL=https://$ODOO_DATABASE.dev.odoo.com
export ODOO_USERNAME=login@mint-system.ch
export ODOO_PASSWORD=***

Create credentials file with task create-env "$HOST" odoo.

Test connection with task test-xmlrpc "$HOST".

Backup database in Odoo.sh project.

Upgrade ⬆️

Run the Odoo.sh upgrade process.

Login and check the Upgrade report.

Configure βš™οΈ

Install, update or remove modules in Odoo.sh shell.

odoo-bin --stop-after-init -i "$MODULE_NAME"
odoo-update "$MODULE_NAME"
echo "self.env['ir.module.module'].search([('name', '=', '$MODULE_NAME')]).button_immediate_uninstall()" | odoo-bin shell
echo "self.env['ir.module.module'].search([('name', '=', '$MODULE_NAME')]).button_immediate_install()" | odoo-bin shell

Make new Odoo configurations.

Install, update, disable or remove selected snippets.

task install-snippet "$COMPANY" path/to/snippet
task update-snippet "$COMPANY" path/to/snippet
task disable-snippet "$COMPANY" path/to/snippet
task remove-snippet "$COMPANY" path/to/snippet

Testing πŸ”¬

See document with test cases.

Production πŸš€

Run the Odoo.sh upgrade process.

Troubleshooting πŸ’‘

Document and resolve upgrade issues.


Backlinks

πŸ”— Odoo.sh Upgrade
πŸ”— Prozesse Projektmanagement - Odoo Projekt
πŸ”— Vorlagen Odoo-Projekte

πŸ“ Edit on GitHub Β· πŸ”· Open in Obsidian