コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
5287 ビュー

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 !


アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 20
6411
1
4月 23
3648
3
1月 24
32214
4
1月 24
7285
1
3月 15
7091