Odoo Help

Welcome!

This community 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.

0

How to filter tree view ? [SOLVED]

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

 

1
Anand
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

Anand
on 12/26/14, 6:03 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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