تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7615 أدوات العرض

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
يونيو 18
2612
2
مارس 23
10752
2
مارس 23
2926
2
مايو 22
5082
0
مارس 22
1968