Saas upgrade - odoo-ps/psbe-process GitHub Wiki
SAAS to SAAS Upgrade SAAS to SH Upgrade
- Go to the database manager: https://www.odoo.com/web/login.
- Click on your profile icon and select "My Databases".
- Click on the upgrade icon next to the main database (the one you want to upgrade).
- In the pop-up message that will appear, you will be given the option to choose:
- a TEST upgrade request, which will give you an upgraded copy of your database for testing.
- a PRODUCTION upgrade request, that will upgrade your live database to the new version, replacing your current live database to the new one.
The production option appears only if you already created a test upgrade before.
- Select the intended version and purpose and click "Upgrade".
This will trigger the automated upgrade process which upon successful completion will send you an email with a link to either your upgraded test database or to confirm that your upgraded production database is ready (on the same web address).
- Connect to the customer database manager as admin (Incognito mode recommended): admin_login + trigram/password
- Click on your profile icon and select "My Databases".
- Click on the action settings icon next to the main database (the one you want to upgrade).
- Select the "Domain Names" option.
- Save the domain names locally for later and delete them from the database.
- Connect to the database and deactivate the crons. (Remember which ones were active in case it wasn't all of them).
- OPTIONAL if downloading the db takes time
- Go to db/_odoo/support
- Download dump: db/_odoo/support/dump.zip
- Note the Email limit. You'll need it later.
- Go back to accounts.odoo.com
- Rename the saas db (in order to be able to use that name on Sh)
- Remove the contract (to lock the db)
- Go into https://www.odoo.com
- Look for the SAAS database in Subscriptions/Databases/Databases and put the field Contract to False.
- Change URL
- Go to the Upgrade platform
- Request a new upgraded database. (Subscription code - Email - Database dump - Target version - Purpose: Production)
- Once finished, download the upgraded dump.
- Go to the SH project.
- Change project name if needed.
- Import the old database dump through the interface into the production branch.
The main reason for this is to preserve the filestore as the Upgrade platform removes it for the upgrade request. - Import the upgraded database dump through the interface into the production branch.
- Do a manual backup.
- Open the settings of the production branch.
- Add the custom domain previously deleted.
- Go to the new Odoo.sh production _odoo/support page and trigger a "Ping!" to automatically link the db with the subscription.
- Check that the correct database is linked to the subscription.
- Set up the Email limit on the support page (same as it was in the SAAS database).
- Connect to the DB and check everything is fine.
- Enable the crons previously deactivated.