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

Hi

Someone has tried to fill a reference field by default? How to do it?

Thanks in advanced.

아바타
취소
베스트 답변

Hi @Alexei

The value of the reference fields is composed by the model of the reference selection model and the id of that model. For example to put the user admin value in a reference to res.users as one of the possible models, you could put it like this:

'res.users,1'
아바타
취소
관련 게시물 답글 화면 활동
0
9월 19
98
1
7월 17
4619
4
8월 16
8866
1
5월 16
5413
2
3월 16
7645