I am trying to hide fields in my order.lines view based on a sale.order field. My xpath code doesn't work:
Note: Sale order field = x_studio_sales_type and Order line field = x_studio_florist_notes
<xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='name']" position="after">
<field name="x_studio_florist_notes" attrs="{'invisible':[//field[@name='x_studio_sales_type'], '=', 'Events']}"/>
</xpath>
Is there any way to achieve this?