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

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
2249
1
7月 25
784
1
8月 25
1150
0
5月 25
1269
2
4月 25
3475