Help

3

What is use of pre_hook and post_hook in odoo module?

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    


Avatar
Discard
1 Answer
2
Avatar
Prakash
Best Answer
  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


Avatar
Discard