Skip to Content
मेन्यू
This question has been flagged
1 Reply
5109 Views

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
3
जुल॰ 25
2127
3
मई 25
3720
2
जून 25
4194
1
मार्च 23
2480
0
जून 21
2425