Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3810 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
15
wrz 21
41973
2
lut 21
3080
1
lut 25
2453
1
lut 24
1949
0
lip 24
2978