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

I have a custom field as Company Name in a model and in another view of another model i want the values entered  in company name field to show up as a drop down list. I have defined another field as select company and made it Many2one and mentioned the model in which company name is present but the drop down list is empty. How can i populate this company name values? I mean i have given the model name in many2one field but how does odoo know what values to populate with? Do i have to do anything?

Ảnh đại diện
Huỷ bỏ

it populates the selection with the values that are in the field named "name".

Tác giả

what if there is already a field named name? how can i make it to populate other field items?

Câu trả lời hay nhất

You could simply add widget="selection" where you want the company names to populate

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 8 19
9383
3
thg 4 19
6661
1
thg 3 19
10492
1
thg 3 15
12226
2
thg 5 22
18048