تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5095 أدوات العرض

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
يوليو 25
2125
3
مايو 25
3717
2
يونيو 25
4191
1
مارس 23
2478
0
يونيو 21
2423