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

Hi,

I would like to add to the model res.partner a multiple selection field. How could I do this ?

The field type 'selection' authorizes only one option to be selected.

I would like to avoid to make a one2many relation, in order to propose only two 'static' options, so the users won't be able to create/delete any options.

Thanks for your help

Cheers

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

make a many2many field and use the tag widget

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

Thanks that worked like a charm.

How did you put the options?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 24
3383
0
thg 3 15
3581
1
thg 3 15
8532
2
thg 12 23
10084
3
thg 10 16
7029