Skip to Content
Menú
This question has been flagged
1 Respondre
3832 Vistes

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?

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
15
de set. 21
42002
2
de febr. 21
3099
1
de febr. 25
2460
1
de febr. 24
1955
0
de jul. 24
2992