Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
5365 Переглядів

I use : odoo 12 , pycharm,

i want to know how i can call the action of the module product into my menu item?

Thanks

Аватар
Відмінити

Action Menu in Odoo: https://goo.gl/UnHzS8

Найкраща відповідь

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 !


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 20
6481
1
квіт. 23
3754
Odoo Installation Вирішено
3
січ. 24
32419
Certificate Error Вирішено
4
січ. 24
7409
1
бер. 15
7156