I use : odoo 12 , pycharm,
i want to know how i can call the action of the module product into my menu item?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I use : odoo 12 , pycharm,
i want to know how i can call the action of the module product into my menu item?
Thanks
Hi,
Suppose if you need to call the action of the product menu in your module, what you have to do is that, take the external ID of the corresponding action and specify it in your new menu.
<menuitem id="menu_product_template_form"
parent="id_of_your_parent"
action="product.product_template_action"
sequence="30"/>
This is a new menu in custom module, that calls the product_template_action in product module.
Thanks
You need to pass action ='Main_Module_name.external_id' in your menu item
Example: action="product.product_action_ID"
in your button name="%(Main_Module_name.external_id)d"
name="product.product_action_ID" type="action"
or
name="product.product_method_name" type="object"
Thanks !
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 5 20
|
6471 | ||
|
1
thg 4 23
|
3723 | ||
Odoo Installation
Đã xử lý
|
|
3
thg 1 24
|
32396 | |
Certificate Error
Đã xử lý
|
|
4
thg 1 24
|
7395 | |
|
1
thg 3 15
|
7146 |
Action Menu in Odoo: https://goo.gl/UnHzS8