Update MailDesk on Odoo.sh
This page shows how to update MailDesk through Git and the Odoo.sh build.
Who this is for: the Odoo administrator of an Odoo.sh project. You need: access to the project's Git repository and administrator access to the Odoo database.
Before you begin
- Read Update MailDesk safely: backup first, and test on staging or development first.
- Download the new MailDesk files for your Odoo version from your account (the /my/modules page).
Steps
1. Replace the module folders in Git
- Replace the existing MailDesk module folders in your repository with the new ones.
- Commit and push to your Development branch.
What you should see: the commit contains the changed MailDesk files.
2. Check the Python packages
Odoo.sh does not pick up packages from a requirements.txt inside a module folder. It reads requirements.txt only in the root of the branch, or in the folder that holds the module folders.
- Compare the new version's packages with the lines in your root
requirements.txt. The new download tells you the pinned versions. - If a package or version changed, update your root
requirements.txtin the same commit.
What you should see: the root requirements.txt matches what the new version needs.
3. Wait for the build
Open the Builds view and wait for the new build.
What you should see: the build is green.
4. Update the module in Odoo
- Open the database of the Development build and turn on developer mode.
- Go to Apps and search for MailDesk.
- Click Upgrade on each installed MailDesk module.
If you do not see the button, click Update Apps List and look again.
What you should see: the update finishes without an error, and MailDesk opens as before. Check one mailbox with a test email.
5. Promote step by step
- Promote to Staging and test on a copy of production.
- Merge to Production, then upgrade the modules in the production database.
If it does not work
- The build is red. Open the build log. A missing Python package is the usual cause: fix the root
requirements.txt. - The Upgrade button is missing. Click Update Apps List, and check that the Development database uses the new build.
- An error appears during the module update. Do not continue to production. See Fix common MailDesk problems, or restore the backup.
Next step
Connect your first mailbox if you have not done so, or check your existing mailboxes.