コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7600 ビュー

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.

アバター
破棄
最善の回答

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>

アバター
破棄
著作者 最善の回答

Hi vasanth thankyou,

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

 

アバター
破棄
関連投稿 返信 ビュー 活動
0
6月 18
2550
2
3月 23
10702
2
3月 23
2892
2
5月 22
5054
0
3月 22
1955