From 0fcfbafaff938799b8caefcc555a2444dab29f18 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Wed, 27 Jan 2021 19:15:29 +0100 Subject: [PATCH] upgrade odoo --- Odoo Upgrade.md | 31 +++++++++++++++++++++++++++++++ Odoo.md | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Odoo Upgrade.md diff --git a/Odoo Upgrade.md b/Odoo Upgrade.md new file mode 100644 index 00000000..a1636b27 --- /dev/null +++ b/Odoo Upgrade.md @@ -0,0 +1,31 @@ +# Odoo Upgrade + +## From 13.0 to 14.0 + +**Test** + +Steps to upgrade a databse. + +* Export remote database to local folder +* Start local development environment +* Restore database +* Run the upgrade script + +``` +export PGHOST=localhost +export PGUSER=odoo +export PGPASSWORD=odoo +python <(curl -s https://upgrade.odoo.com/upgrade) test -d erp -t 14.0 +``` + +It should automatically resote the database. + +* Swich local development environment to targeted version + +If connection has been lost proceed with this: + +* Store the token `export TOKEN=...` +* Check the status `python <(curl -s https://upgrade.odoo.com/upgrade) status -t $TOKEN` +* Restore the database `python <(curl -s https://upgrade.odoo.com/upgrade) restore -d erp -r erp-14.0 -t $TOKEN` + +**Production** \ No newline at end of file diff --git a/Odoo.md b/Odoo.md index 48bce4f6..c305bc6c 100644 --- a/Odoo.md +++ b/Odoo.md @@ -41,4 +41,5 @@ Mint System GmbH bietet ein [[Odoo Hosting]] und ein [[Odoo Handbuch]]. * [[Odoo Troubleshooting]] * [[Odoo Offene Fragen]] * [[Odoo Business Flow]] -* [[Odoo 13]] \ No newline at end of file +* [[Odoo 13]] +* [[Odoo Upgrade]] \ No newline at end of file