Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5124 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
juil. 25
2129
3
mai 25
3723
2
juin 25
4198
1
mars 23
2481
0
juin 21
2427