Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
547 Widoki

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

Awatar
Odrzuć

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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 25
453
0
kwi 25
661
0
mar 25
679
1
gru 24
1199
1
sie 23
2527