跳至內容
選單
此問題已被標幟
4 回覆
7682 瀏覽次數

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?

頭像
捨棄

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

作者

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

最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
8月 19
9378
3
4月 19
6658
1
3月 19
10490
1
3月 15
12224
2
5月 22
18048