Skip to Content
Menú
This question has been flagged
2 Respostes
7663 Vistes

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
Descartar
Best Answer

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
Descartar
Autor Best Answer

Hi vasanth thankyou,

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

 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 18
2652
2
de març 23
10813
2
de març 23
2958
2
de maig 22
5160
0
de març 22
1997