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

I found tutorials for older versions which doesn't apply. Please let me know if there are any resources I can follow.

아바타
취소
베스트 답변

Hi 
You can add this code in .py class

aselection = fields.Selection([('a', 'A'),('b', 'B')])

aselection = fields.Selection([('a', 'A'),('b', 'B')])


And add this code in .Xml  where you want

<field name="name" widget="selection"/>

Look this 

http://odoo-new-api-guide-line.readthedocs.io/en/latest/fields.html#selection

https://stackoverflow.com/questions/35055645/odoo-hide-some-options-in-field-selection


아바타
취소