Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3827 Представления

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.

Related Posts Ответы Просмотры Активность
15
сент. 21
41992
2
февр. 21
3084
1
февр. 25
2458
1
февр. 24
1952
0
июл. 24
2988