Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5102 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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()
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
2125
3
maj 25
3718
2
cze 25
4192
1
mar 23
2479
0
cze 21
2424