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

Hi,

suppose i have student form

it contain

student_name:fields.many2one('res.partner','Student Name'),

'division':fields.many2one('div.class','Division'),   suppose[A,B,C,D]

 

####

For that when I create student form ,it should automatically come Division-'C' ,never populate 'A' how to change my code

아바타
취소
베스트 답변

 To Load Priority in a many2one form:-

   In the many2one master table set  _order = 'division_fieldname desc'  based on your requirement.

To Filter Data in a many2one form:

   To add domain in the field.

아바타
취소