[19] Question: migration of module_change_auto_install to Odoo 19
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start with the module_change_auto_install addon's manifest-patching code, which the reporter says hooks odoo.modules.module.load_manifest, and compare it with the proposed hook on odoo.modules.module._load_manifest under Odoo 19's Manifest API. The issue has no settled answer on the hook or on the target branch, and no 19.0 branch was confirmed, so get a maintainer decision on both before writing a patch. Done means the auto_install overrides from modules_auto_install_disabled and modules_auto_install_enabled take effect on Odoo 19 when the module is listed in server_wide_modules.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello OCA team,
We are migrating to Odoo 19 and noticed that module_change_auto_install no longer takes effect when listed in server_wide_modules. In 18.0 it worked fine.
Root cause observed
- In Odoo 19, the manifest pipeline moved to the new Manifest API.
- Patching odoo.modules.module.load_manifest (as in 18) no longer intercepts manifest parsing.
Working approach we implemented locally
- Hook odoo.modules.module._load_manifest and apply the same auto_install enable/disable overrides there.
- Keep reading settings from config/env (modules_auto_install_disabled / modules_auto_install_enabled).
- Removed <=18 compatibility in our patch to keep it 19-only.
Key details
- We set auto_install to False for disabled modules and to the set of dependencies (or empty set) for enabled modules, following Odoo 19’s rules (triggers must be dependencies now).
- On startup we log e.g.: “Hooked odoo.modules.module._load_manifest (Odoo 19+)” and per-module changes.
Questions
- Is targeting _load_manifest the right hook for Odoo 19 in this addon? Any preferred alternative?
- Could you please advise on the correct target branch for a PR? I don’t currently see/track a 19.0 branch for server-tools module_change_auto_install. If you create/confirm the 19.0 branch, I can open a PR right away.
Testing
- We used Odoo’s test harness with --test-enable / --test-tags on a fresh DB to validate basic manifest reading and config parsing.
Happy to contribute the patch and minimal doc note about the Odoo 19 behavior change (auto-install triggers must be declared dependencies).
Thanks!
— Milan Topuzov
- Lingua principale
- Python
- Stelle
- 960
- Fork
- 1.7k
- Merge medio
- 7g 17h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OCA/server-tools
-
When tracking Json fields an error pops in v19Forse già presa @xecanto l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OCA/server-tools#3796 ·
I maintainer di solito rispondono entro 1 giorno
-
[18.0] base_exception: swallow_base_exception_error never runs the decorated testForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OCA/server-tools#3784 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[17.0] auto_backup: Cron: Database backup failed, UnicodeDecodeError: utf-8 codec can't decode byte 0x8b in position 690: invalid start byteForse già presa @xecanto l’ha presa 20 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
OCA/server-tools#3768 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
OCA/server-tools#3368 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
OCA/server-tools#3139 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OCA/server-tools
Issue simili
-
breaking change
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
check-skill-pages: show fixture build errors when a build failsForse già presa @ShahadatTest l’ha presa oggi. Apertagood first issue P2
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
coco-research/coco#439 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
esphome/home-assistant-addon#274 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
endurain-project/endurain#882 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100