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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1977
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up