Skip to Content
Menu
This question has been flagged
1 Reply
1977 Views
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
Avatar
Discard
Best Answer

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

--

 Webkul
Anisha Bahukhandi
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)

Facebook - Webkul  Twitter - Webkul  Youtube - Webkul Ticket Support - Webkul
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.


Avatar
Discard