İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7657 Görünümler

Hello All,

I am new to the odoo,I want to add textbox and a button in the search box area of tree view.

Please help me on this.

Avatar
Vazgeç
En İyi Yanıt

Hi yogest, you cannot add the text box in the search view. You can add a filter for the search box.Try this example code in the your xml "search "view

        <record id="view_account_analytic_account_search" model="ir.ui.view">
            <field name="name">account.analytic.account.search</field>
            <field name="model">account.analytic.account</field>
            <field name="arch" type="xml">
                <search string="Analytic Account">
                    <filter string="Draft" icon="terp-go-home" domain="[('state','=','draft')]"  />
                    </group>
                </search>
            </field>
        </record>

Avatar
Vazgeç
Üretici En İyi Yanıt

Hi vasanth thankyou,

Since i am new to odoo,i didnt understand the filter attributes,Please explain the attributes,Specifically 'domain="[('state','=','draft')]".

 

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 18
2646
2
Mar 23
10801
2
Mar 23
2951
2
May 22
5123
0
Mar 22
1989