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

How to use hook inside module?

When to use pre, post or uninstall hook inside openerp file?

What is purpose of it?


Thanks

Regards,

Anil Kesariya    


아바타
취소
베스트 답변
  1. declare  'post_init_hook': '_my_method' in side __openerp__.py,

  2.  declare def _my_method(cr, registry) in side your __init__.py of  module and put the logic here

 same in case of pre_init_hook


아바타
취소
베스트 답변

Explaination not done properly

아바타
취소
베스트 답변

The information from the link below answers all your questions: 

https://www.cybrosys.com/blog/how-to-use-hooks-in-odoo-development

아바타
취소
관련 게시물 답글 화면 활동
2
8월 25
3471
1
7월 25
1607
1
8월 25
1153
0
5월 25
1934
2
4월 25
4258