跳至内容
菜单
此问题已终结
1 回复
3896 查看

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.

相关帖文 回复 查看 活动
15
9月 21
42117
2
2月 21
3147
1
2月 25
2550
1
2月 24
2022
0
7月 24
3083