تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2373 أدوات العرض

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
مايو 23
3679
2
مايو 23
3416
1
ديسمبر 21
2192
3
مارس 24
7158
1
أبريل 24
1742