this is not a question as i was able to figure it out.
<field name = "subtotal" attrs = "{'column_invisible': [('parent.state', '=', 'order')]}" />
parent is not a declared variable. parent takes us to the original class
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ờ
1
Trả lời
2301
Lượt xem
Hello,
Thanks for sharing; however, there is one more way to hide/show the fields in one2many view that is:
<field name="one2manyfield">
<tree>
<field name="subtotal" optional="hide"/>
</tree>
</field>
Regards
--
Anisha Bahukhandi
Technical Content Writer (ODOO)
Technical Content Writer (ODOO)
Webkul Software Pvt. Ltd. Contact : India (+91)-9870284067 USA (+1)-9143531684
Address H-28, ARV Park, Sector 63 ,
Noida-201301 (U.P.)
India (Branch Office)
This
email and any files transmitted with it are confidential and contain
privileged or copyright information. If you are not the intended
recipient you must not disseminate, copy, distribute, or use this email
or the information contained in it for any purpose other than to notify
us. If you have received this message in error, please notify the sender
immediately, and delete this email from your system.
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ý