跳至内容
菜单
此问题已终结
3 回复
24724 查看

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
2254
1
7月 25
792
1
8月 25
1150
0
5月 25
1269
2
4月 25
3477