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

The Many2One widget allows external links to be opened for all fields. How can this be restricted?

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

Hi,
If you need to remove it globally, you can check out this OCA App:    https://apps.odoo.com/apps/modules/16.0/web_m2x_options/

Thanks

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

Hi Niyas,
Thanks for your response.
That module restricts only editing and creating access, not opening external links from many2one.

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

Hi Vishnu,

options='{"no_open": True}' is used to restrict the many2one field from opening up the record.

Syntax:


Hope it helps,
Kiran K

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

Hi Kiran,
Thank you for your reply
"This method allows us to add each and every field individually, but I aim to globally add all the fields from my modules."

Thanks & Regards,
Vishnu Sasikumar

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 23
3864
2
พ.ค. 23
3550
1
ธ.ค. 21
2370
get the value of a field of other model แก้ไขแล้ว
3
มี.ค. 24
7344
1
เม.ย. 24
1970