Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3836 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
15
sept. 21
42005
2
févr. 21
3100
1
févr. 25
2466
1
févr. 24
1959
0
juil. 24
2996