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

Hi, how can I make a field invisible if it is in another model, and the field I am looking at is in my model

 


아바타
취소
베스트 답변

Hello pavel

You can set the invisible attribute based on context values
You can refer below code
I hope it may help you

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

아바타
취소

Code :-

<field name="partner_id" invisible="context.get('active_model')!='student.student'"/>

관련 게시물 답글 화면 활동
0
9월 23
41
4
3월 23
17291
2
7월 22
4094
0
5월 22
2417
1
11월 21
18827