Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
7696 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
5
авг. 19
9409
3
апр. 19
6673
1
мар. 19
10512
1
мар. 15
12233
2
мая 22
18048