콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7607 화면

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
2567
2
3월 23
10713
2
3월 23
2903
2
5월 22
5069
0
3월 22
1962