i make a new object in odooV8, it called 'wtc.approval.line' , i want to make tree view base on one field selection called Status so it doesn't show everything.
for example , in Status selection i have (draft, approve, reject). I just want to show only datas that have draft status ..
i try with this code , but it won't work .
<record model="ir.actions.act_window" id="approval_portal_action">
<field name="name">Portal Approval Matrix Biaya</field>
<field name="res_model">wtc.approval.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'value':[('statue','=','1')]}</field>
</record>