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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 1 25
|
1140 | ||
|
2
thg 9 22
|
8968 | ||
|
2
thg 4 22
|
3804 | ||
|
0
thg 7 21
|
6635 | ||
|
1
thg 3 21
|
4496 |