Skip to Content
Menú
This question has been flagged
1 Respondre
807 Vistes

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:

  1. Scheduled CRON job inside Odoo
    A background scheduled job that routinely checks for required upgrades on target modules and applies them automatically if needed.
  2. 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.
  3. 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

Avatar
Descartar

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.

Best Answer

Hi,

Auto upgrade can be done in Odoo simply by using the module versions.


'version': '17.0.1.1.0',


You can upgrade your module when pushing to Git by changing the last three digits of the manifest version.


The detailed explanation about version control can be seen in the following link


* https://www.odoo.com/sl_SI/forum/pomoc-1/how-should-one-version-their-patches-to-their-custom-modules-130124


Hope it helps

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de jul. 25
222
1
de jul. 25
257
2
de jul. 25
300
1
de juny 25
260
1
de maig 25
622