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

How to hide create and edit ,hyper link  and quick create on many2one field 

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

Try this in your .xml file

<field name="many2onefield" options="{'no_create': True, 'no_create_edit':True}" />

or

 < field name="many2onefield" widget='selection'/>

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

Yes.It worked for me. But I need to use 'web_m2x_options' module for that

Try widget="selection". I edited answer.

ผู้เขียน

If we use widget="selection" then name_get won't call on that field and it will return all the data at a time Now issue reolved by installing the web_m2x_options thanks

คำตอบที่ดีที่สุด

Please use below code.

<attribute name="options">{'no_create_edit': True, 'no_create':True, 'no_open':True}</attribute>

or 

<attribute name="widget">selection</attribute>

I hope this help you.

Best Thanks,

Ankit H Gandhi.

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

Try this one,

<field name="your_field_name" options="{'no_quick_create':True,'no_create_edit':True,'no_open': True,}"/>

Read more: https://www.youtube.com/watch?v=X_sdiKGQgJo

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

 

<should work on any type of field options="{'no_create': True, 'no_quick_create': True, 'no_create_edit':True}"/>

 


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 25
1265
1
มี.ค. 25
652
2
มี.ค. 24
1604
1
ก.ย. 23
2446
1
มี.ค. 23
2242