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)]}"/>
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
12866
มุมมอง
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'"
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
1
ต.ค. 22
|
11595 | ||
|
|
1
มี.ค. 15
|
14168 | ||
|
|
6
ก.ย. 17
|
10694 | ||
|
|
2
มี.ค. 15
|
12292 | ||
|
|
1
มี.ค. 15
|
6009 |