Hi,
I want to hide field from one2many fields(tree view) based on parent view field value, how can i do this?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I want to hide field from one2many fields(tree view) based on parent view field value, how can i do this?
Thanks
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 conditionRegards
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.
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
gen 25
|
2590 | ||
|
|
2
set 22
|
10331 | ||
|
|
2
apr 22
|
5221 | ||
|
|
0
lug 21
|
7960 | ||
|
|
1
mar 21
|
5587 |