I have created a new field in sale order line named as "Price1" and "Price_chk" boolean field in Sale order. The field "Price1" should be invisible in tree view when the field "Price_chk" is False and it should be visible when the field "Price_chk" is True.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You can use column_invisible inside attrs, like this
<field name="field_name" attrs="{'column_invisible': [('parent.field', '=', value)]}" />
Hi,
one2many field in tree view inside column hide(parent value)
like: attrs="{'column_invisible': [('parent.price_chk', '=', False)]}"
You can do it with attrs and invisible in the xml.
<field name="Price1" attrs="{'invisible':[('price_chk', '=', False)]}" />
I tried this, but it was not working. Because "attrs" is not working in one2many treeview
Try
<div attrs="{'invisible':[('price_chk', '=', False)]}">
<field name="Price1"/>
</div>
Hi ayyapan,
one2many list view (column hiding will not work). We can hide only content of column not whole column. so only way to hide is you have to set group permission.
Thanks
Chandran Nepolean
no by using column_invisible in attrs we can make a many2one field invisible
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 | |
---|---|---|---|---|
|
0
thg 10 19
|
8 | ||
|
3
thg 4 25
|
4665 | ||
|
5
thg 11 23
|
42970 | ||
Create dynamic tree view
Đã xử lý
|
|
3
thg 9 23
|
9464 | |
|
1
thg 9 22
|
3732 |