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

Am using Odoo 10. And I want to execute some code after all modules have loaded and all tables have been created.

Avatar
Abbandona
Risposta migliore

odoo/modules/loading.py

there is register_hook function that might help. to see an example of it: see base/res/res_lang.py:80

# STEP 8: call _register_hook on every model
for model in env.values():
model._register_hook()
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
lug 25
2125
3
mag 25
3718
2
giu 25
4191
1
mar 23
2478
0
giu 21
2423