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 condition
Regards
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.
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
1월 25
|
1716 | ||
|
2
9월 22
|
9441 | ||
|
2
4월 22
|
4470 | ||
|
0
7월 21
|
7152 | ||
|
1
3월 21
|
4864 |