From 73c3bebe65a9f3e204a91ebbf97fc5f88d74c2ac Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Tue, 18 Jun 2024 10:46:19 +0200 Subject: [PATCH] vault backup: 2024-06-18 10:46:19 --- Odoo Enterprise Upgrade.md | 16 ++- Odoo Upgrade from 14.0 to 16.0.md | 5 - Odoo Upgrade from XX.0 to XX.0.md | 123 +++++++++++++++++++++++ Template Report on Odoo Customization.md | 6 ++ Vorlagen.md | 1 + 5 files changed, 137 insertions(+), 14 deletions(-) delete mode 100644 Odoo Upgrade from 14.0 to 16.0.md create mode 100644 Odoo Upgrade from XX.0 to XX.0.md diff --git a/Odoo Enterprise Upgrade.md b/Odoo Enterprise Upgrade.md index d253d553..b26d5693 100644 --- a/Odoo Enterprise Upgrade.md +++ b/Odoo Enterprise Upgrade.md @@ -7,14 +7,12 @@ tags: Description of the [[Odoo Enterprise Edition]] upgrade process. -With every major upgrade a new documentation is created: -## [[Odoo Upgrade from 13.0 to 14.0]] +For new upgrades use this script: [[Odoo Upgrade from XX.0 to XX.0]] -## [[Odoo Upgrade from 14.0 to 15.0]] +These were the old upgrade strategies: -## [[Odoo Upgrade from 14.0 to 16.0]] -## [[Odoo Upgrade from 13.0 to 16.0]] - -## [[Odoo Upgrade from 15.0 to 16.0]] - -## [[Odoo Upgrade from 16.0 to 17.0]] \ No newline at end of file + * [[Odoo Upgrade from 13.0 to 14.0]] + * [[Odoo Upgrade from 14.0 to 15.0]] + * [[Odoo Upgrade from 13.0 to 16.0]] + * [[Odoo Upgrade from 15.0 to 16.0]] + * [[Odoo Upgrade from 16.0 to 17.0]] \ No newline at end of file diff --git a/Odoo Upgrade from 14.0 to 16.0.md b/Odoo Upgrade from 14.0 to 16.0.md deleted file mode 100644 index 5e7e19db..00000000 --- a/Odoo Upgrade from 14.0 to 16.0.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tags: -- HowTo ---- -# Odoo Upgrade from 14.0 to 16.0 \ No newline at end of file diff --git a/Odoo Upgrade from XX.0 to XX.0.md b/Odoo Upgrade from XX.0 to XX.0.md new file mode 100644 index 00000000..cef153bd --- /dev/null +++ b/Odoo Upgrade from XX.0 to XX.0.md @@ -0,0 +1,123 @@ +--- +lang: en +tags: +- templates +--- +# Odoo Upgrade from XX.0 to XX.0 + +## Prepare + +Set env vars. + +```bash +export ODOO_CURRENT_VERSION=XX.0 +export ODOO_TARGET_VERSION=XX.0 +export MODE=test # Options: test, production +export PGHOST=localhost +export PGUSER=odoo +export PGPASSWORD=odoo +export DATABASE=erp +export NEW_DATABASE=${DATABASE}_${ODOO_TARGET_VERSION} +export COMPANY=mint-system +alias odoo-upgrade="python <(curl -s https://upgrade.odoo.com/upgrade)" +``` + +Download the database. + +```bash +odoo-backup -d $DATABASE -o tmp/$COMPANY/$DATABASE.zip ... +``` + +Checkout current Odoo environment. + +```bash +task checkout $ODOO_CURRENT_VERSION +``` + +Start local development environment. + +```bash +task start db,native +``` + +## Restore + +Clear filestore and restore database. + +```bash +task drop-db $DATABASE +task clear-filestore $DATABASE +odoo-restore -f tmp/$COMPANY/$DATABASE.zip +``` + +Remove or replace [[Unsupported Modules]]. + +```bash +task remove-module $DATABASE ... +task install-module $DATABASE ... +``` + +Login and check the Odoo log. +## Upgrade + +Run the upgrade scripts. + +```bash +task clear-filestore $NEW_DATABASE +task drop-db $NEW_DATABASE +odoo-upgrade $MODE -d $DATABASE -t $ODOO_TARGET_VERSION -r $NEW_DATABASE +``` + +Checkout target Odoo environment. + +```bash +task checkout $ODOO_TARGET_VERSION +``` + +Upgrade all modules. + +```bash +task update-module $NEW_DATABASE base +``` + +Clear the browser cache and Odoo assets, then start the server. + +```bash +task clear-assets $NEW_DATABASE +task start native +``` + +Login and check the Upgrade report. +## Configure + +Install new modules. + +```bash +task install-module $NEW_DATABASE ... +``` + +Make new Odoo configurations. + +Update the language packages. + +Update or remove selected snippets. +## Verify + +Test the upgraded system. + +Run the test cases. + +Note any regressions. + +## Deploy + +Export the new database. + +```bash +odoo-backup -d $NEW_DATABASE -o tmp/$COMPANY/$NEW_DATABASE.zip +``` + +Deploy the upgraded database. + +Restore the upgraded database. + diff --git a/Template Report on Odoo Customization.md b/Template Report on Odoo Customization.md index aaabc207..29d47ead 100644 --- a/Template Report on Odoo Customization.md +++ b/Template Report on Odoo Customization.md @@ -1,3 +1,9 @@ +--- +lang: en +tags: +- Templates +--- + # Template Report on Odoo Customization Author: [[Janik von Rotz]]\ Date: YYYY-MM-DD diff --git a/Vorlagen.md b/Vorlagen.md index 3d1afea1..d316def0 100644 --- a/Vorlagen.md +++ b/Vorlagen.md @@ -30,3 +30,4 @@ tags: | [[Vorlage Troubleshooting]] | | [[Vorlage Use Cases]] | | [[Vorlage Worklog]] | +| [[Odoo Upgrade from XX.0 to XX.0]] |