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.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
1
ม.ค. 25
|
2962 | |||
|
2
ก.ย. 22
|
10638 | |||
|
2
เม.ย. 22
|
5525 | |||
|
0
ก.ค. 21
|
8299 | |||
|
1
มี.ค. 21
|
5853 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.