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

I have a many2many field that represents a list of student. I want to only add student to that list but not remove any students from that list (in form view). Is it possible to implement that?

الصورة الرمزية
إهمال
أفضل إجابة

Hi Tung Nguyen,

Please note to explain which version of Odoo you are referring to. In Odoo 15 you can use Node options to define the possibility of the records delete option Many2Many fields. an example is given below :

<field name="user_ids" string="Allow users" widget="many2many" options="{'unlink': False}"/>


Regards

الصورة الرمزية
إهمال
الكاتب

I'm using Odoo 14 and it worked as well.

المنشورات ذات الصلة الردود أدوات العرض النشاط
15
سبتمبر 21
41999
2
فبراير 21
3098
1
فبراير 25
2460
1
فبراير 24
1955
0
يوليو 24
2992