Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5121 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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()
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
iul. 25
2127
3
mai 25
3720
2
iun. 25
4195
1
mar. 23
2481
0
iun. 21
2426