Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5088 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 25
2124
3
kvě 25
3711
2
čvn 25
4185
1
bře 23
2472
0
čvn 21
2421