This question has been flagged
3 Replies
18040 Views

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>

 

Avatar
Discard
Best Answer

use this..

<field name="domain">[('status','=','1')]</field>

Avatar
Discard
Author

thanks it works :D

no mention,.... make question as solved