diff --git a/Odoo Enterprise Upgrade.md b/Odoo Enterprise Upgrade.md index b8e4ec61..eee5da33 100644 --- a/Odoo Enterprise Upgrade.md +++ b/Odoo Enterprise Upgrade.md @@ -25,4 +25,6 @@ Prepare for test upgrade: ## [[Odoo Upgrade from 13.0 to 16.0]] -## [[Odoo Upgrade from 15.0 to 16.0]] \ No newline at end of file +## [[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 16.0 to 17.0.md b/Odoo Upgrade from 16.0 to 17.0.md new file mode 100644 index 00000000..7e530dde --- /dev/null +++ b/Odoo Upgrade from 16.0 to 17.0.md @@ -0,0 +1,123 @@ +--- +tags: +- HowTo +--- +# Odoo Upgrade from 16.0 to 17.0 + +## Prepare + +Set env vars. + +```bash +export ODOO_CURRENT_VERSION=16.0 +export ODOO_TARGET_VERSION=17.0 +export MODE=test +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 +``` + +Install python packages. + +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 +``` + +Login and check the Odoo log. + +Remove [[Unsupported Modules]]. + +```bash +task remove-module $DATABASE ... +``` + +Update modules. + +## Upgrade + +Run the upgrade scripts. + +```bash +odoo-upgrade $MODE -d $DATABASE -t $ODOO_TARGET_VERSION -r $NEW_DATABASE +``` + +Checkout target Odoo environment. + +```bash +task checkout $ODOO_TARGET_VERSION +``` + +Clear the assets and start the server. + +```bash +task clear-assets $NEW_DATABASE +task start native +``` + +Login and check the Odoo log. + +Check the Upgrade report. + +## Configure + +Migrate custom modules. + +Install new modules. + +```bash +task install-module $NEW_DATABASE ... +``` + +Reset selected views. + +Make new Odoo configurations. + +Activate options in the settings page. + +Update selected snippets. + +## Verify + +Test the upgraded system. + +Run these test cases. + +Note regressions. + +## Deploy + +Export the new database. + +```bash +odoo-backup -d $NEW_DATABASE -o tmp/$COMPANY/$NEW_DATABASE.zip +``` + +Deploy the upgraded database. \ No newline at end of file