콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5120 화면

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
2127
3
5월 25
3720
2
6월 25
4195
1
3월 23
2480
0
6월 21
2426