Skip to Content
Menú
This question has been flagged
1 Respondre
4631 Vistes

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)]}"/>

Avatar
Descartar
Best Answer

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'"
Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 22
8947
1
de març 15
11484
6
de set. 17
7300
2
de març 15
9285
1
de març 15
3777