Hello Odoo Community,
We recently faced a few critical issues in our production environment due to missing module upgrades after code was merged and deployed via GitHub to Odoo.sh. The root cause was the manual step required to trigger a module upgrade post-deployment — which is currently a human responsibility in our workflow.
We're looking for a simple and robust solution to automate the upgrade of specific Odoo modules immediately after deployment. Here are a few options we're considering:
-
Scheduled CRON job inside Odoo
A background scheduled job that routinely checks for required upgrades on target modules and applies them automatically if needed. -
GitHub Actions Workflow
A pipeline step that connects to Odoo.sh using CLI/API and runs the upgrade command automatically post-merge, based on a specific branch or deployment event. -
Other Suggestions Welcome
We're open to better or simpler ideas from the community that align well with Odoo.sh and reduce human dependency in production workflows.
Has anyone implemented such a system or tackled this issue in a more efficient way?
Any advice or guidance would be highly appreciated!
We'd also be happy to contribute back our final solution as a reference.
Thanks
3.1 One additional possibility would be using a watchdog
For our on premise setups we run a GitHub Workflow similar to odoo.sh - so yes, it's definitely doable.