跳至內容
選單
此問題已被標幟
1 回覆
5089 瀏覽次數

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

頭像
捨棄
最佳答案

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()
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 25
2124
3
5月 25
3711
2
6月 25
4185
1
3月 23
2472
0
6月 21
2421