Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
7597 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter Bedste svar

Hi vasanth thankyou,

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

 

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jun. 18
2542
2
mar. 23
10699
2
mar. 23
2891
2
maj 22
5052
0
mar. 22
1954