Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3825 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
15
thg 9 21
41990
2
thg 2 21
3083
1
thg 2 25
2456
1
thg 2 24
1952
0
thg 7 24
2985