Odoo Help


How to filter tree view ? [SOLVED]

Ajeng Shilvie
on 12/26/14, 5:34 AM 1,381 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>


On 12/26/14, 5:45 AM

use this..

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

thanks it works :D

Ajeng Shilvie
on 12/26/14, 5:53 AM

no mention,.... make question as solved

on 12/26/14, 6:03 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/26/14, 5:34 AM
Seen: 1381 times
Last updated: 3/16/15, 8:10 AM