跳至內容
選單
此問題已被標幟
2 回覆
2379 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
1
5月 23
3679
2
5月 23
3416
1
12月 21
2198
3
3月 24
7162
1
4月 24
1744