콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
9571
3
4월 19
6824
1
3월 19
10690
1
3월 15
12331
2
5월 22
18048