I want to hide a row based on a condition.The tree view is one2many field.If the od_state = cancel
,then the row should be invisible
code:
<field name="line_id">
<tree editable='bottom' >
<field name="name" attrs="{'invisible':[('state','=','cancel')]}"/>
<field name="date" attrs="{'invisible':[('state','=','cancel')]}"/>
<field name="state" invisible="1"/>
</tree>
</field>
The above code hides the data in line(row),but the line is still visible.
Output: