Skip to Content
Menú
This question has been flagged
1 Respondre
5084 Vistes

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

Avatar
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
3
de jul. 25
2124
3
de maig 25
3710
2
de juny 25
4183
1
de març 23
2472
0
de juny 21
2420