Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1058 Ansichten

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
Verwerfen

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.

Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 25
297
2
Juli 25
487
1
Juli 25
433
2
Juli 25
461
1
Juni 25
482