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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
2
thg 11 25
|
306 | |||
|
1
thg 11 25
|
2255 | |||
|
1
thg 11 25
|
3508 | |||
|
2
thg 8 25
|
4066 | |||
|
1
thg 7 25
|
2020 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.