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
The information from the link below answers all your questions:
https://www.cybrosys.com/blog/how-to-use-hooks-in-odoo-development
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
2
нояб. 25
|
321 | |||
|
1
нояб. 25
|
2270 | |||
|
1
нояб. 25
|
3520 | |||
|
2
авг. 25
|
4079 | |||
|
1
июл. 25
|
2037 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.