Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
5302 มุมมอง

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
6425
1
เม.ย. 23
3669
Odoo Installation แก้ไขแล้ว
3
ม.ค. 24
32254
Certificate Error แก้ไขแล้ว
4
ม.ค. 24
7302
1
มี.ค. 15
7105