콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
5732 화면

Can I use the syntax as condition1.type1 and condition2.type1 in the field of view xml?
if condition1 and condition2 have the type1 attribute?

<field name="name" attrs="{'invisible': [('condition1.type1', '=', False)], 'required': [('condition2.type1', '=', True)]}"/>

아바타
취소
베스트 답변

Hello, if it's still problem. You can use context.


context="{'default_type_1': condition1.type1, 'default_type_2': condition2.type1}"
invisible="context.get('default_type_1', False)"
required="context.get('default_type_2')=='default_type_2_value'"
아바타
취소
관련 게시물 답글 화면 활동
1
10월 22
9673
1
3월 15
12042
6
9월 17
8180
2
3월 15
9934
1
3월 15
4425