Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7106 Zobrazení

Hi,

I want to hide field from one2many fields(tree view) based on parent view field value, how can i do this?

Thanks

Avatar
Zrušit
Nejlepší odpověď

Hi
Please refer the code given below,

<field name="field_name" attrs="{'column_invisible': [('parent.parent_field_name,'=',False)]}"/>
// Single condition
<field name="field_name" attrs="{'column_invisible': (['|', ('parent.parent_field_name_1','=', condition), ('parent.parent_field_name_2', '=',condition)])}"/>
//Multiple condition

Regards

Avatar
Zrušit
Nejlepší odpověď

Having same issue.It doesn't seem possible to me. You need to create another form view. or probably field_view_arch can do job but even if it can do , I would prefer to write another view.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 25
1483
2
zář 22
9259
2
dub 22
4262
0
čvc 21
6941
1
bře 21
4696