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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
declare 'post_init_hook': '_my_method' in side __openerp__.py,
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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
ago 25
|
2253 | ||
|
1
lug 25
|
791 | ||
|
1
ago 25
|
1150 | ||
|
0
mag 25
|
1269 | ||
|
2
apr 25
|
3477 |