Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
859 Visualizzazioni

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
Abbandona

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.

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
342
1
lug 25
323
2
lug 25
354
1
giu 25
329
1
mag 25
645