Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3817 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
15
set 21
41977
2
feb 21
3080
1
feb 25
2454
1
feb 24
1950
0
lug 24
2981