Move from SaaS to SH - odoo-ps/psbe-process GitHub Wiki
- Create a new repo psOFFICE-CLIENT_NAME within odoo-ps github organization where
- OFFICE should be [be, lu, us, hk] depending on which office manages the project
- CLIENT_NAME should be the name of the client without any special char or accent or capital letter
- Example: for the Belgian client "la fabrique givrée" create a repo psbe-lafabriquegivree or psbe-la-fabrique-givree
- There is a team for each office (PSBE (for be and lu, look for "odoo-ps/psbe"), PSUS, PSIN, ...). Add the corresponding team as admin of the repo in order to allow you colleague to access the repo as well.
- Go on odoo.sh, log in and create a new project
- Choose an existing repository: The one you just created
- Use the client subscription, choose the server region according to the client localization
- By default client from BE and LU will be in Europe, HK is Asia and US is Americas
- Add the functional consultant as admin in the settings
- For psbe project add mva-odoo as admin as well
- Create one other branche
- staging branch named with version number by e.g. 13.0-staging
- Put the branch in the right stage on SH (master in production and staging branch in staging)
- On the production branch load a dump from the saas DB. Be careful, execute the Neutralization script straight after!
- Create a copy of ps-custom in folder ps-custom_bis
git clone [email protected]:odoo/ps-custom.git ps-custom_bis
- Go into this folder
cd ps-custom_bis
- Checkout the branch you want to copy
git checkout <branch_to_copy>
- Change the remote url to your new repo
git remote set-url origin [email protected]:odoo-ps/psbe-agence-du-numerique.git
- Push the branch on your new repo
git push
You can also change the name of the branch transferred
- Checkout the branch transferred
git checkout <branch_transferred>
- Change name locally to for example 12.0-module_saas_backup
git branch -m <new_name>
- Set new upstream
git push origin -u <new_name>
- Delete old name remote branch:
git push origin --delete <old_name>
After that you can delete the folder ps-custom_bis from your computer. You now have previous dev with historic on the new repository.
- connect on accounts.odoo.com as admin : admin_login + trgramme/pw
- Go into my/databases
- Connect to the DB as admin
- Click on screw and domains
- Delete the domain example: www.activegear.eu
If for some reason you cannot rename it, you can add this /saas_worker/rename?to=
to the URL to do it
- 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
- OPTIONNAL if the transfer might take time ad you need to lock the db, for an estore for example
- Ask saas team to lock db (Maybe good to warn them before)
- Go to sh
- Change project name, example: active-gear
- Load the dump through the interface into the production branch
- Open the settings of the production branch
- Add the custom domain previously deleted
- Go into odoo.com
- Look for the Saas database in Subscriptions/Databases/Databases and put the field Contract to False
- 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 support page (same as in saas)
- Connect to the DB and check every thing is fine