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

I am using odoo 11.

I managed to add a custom option in the 'Action' dropdown menu for a specific model (see https://www.odoo.com/forum/help-1/question/how-to-add-an-option-to-the-action-drop-down-menu-in-tree-view-140095):

<act_window id="action_set_invoice_done"
name="My menu name"
src_model="openacademy.course"
res_model="openacademy.course"
view_type="form" view_mode="form"
key2="client_action_multi" target="new"
/>

Is there a way to let that option appear only in a specific kind of view?

In other words: i'd like the option to appear only in treeview, after i select some records. Or the other way around: i'd like it to only appear in the formview when i'm in the details of a specific record.

Thank you very much in advance for any help!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try multi="False" in your action definition.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you for the answer. However this does not seem to work... in the docs (https://www.odoo.com/documentation/11.0/reference/actions.html) it seems that the multi attribute is defined only for server actions, whereas here i've got a window action. Thanks anyway!

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 23
1970
1
มี.ค. 22
26542
Dynamic Form from Tree View แก้ไขแล้ว
3
ส.ค. 20
4381
1
ส.ค. 19
4198
Button to open form. V11 แก้ไขแล้ว
2
มี.ค. 19
3095