Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3760 มุมมอง

Hi Guys,

i'm wondering how to add new fields (i.e. phone and email) into SO/RFQ search field? (not filters but search)

pls look at screenshot here: http://i.piccy.info/i9/831df50b03d9eac87f0470c0dad07af8/1588000380/85062/1375024/Screenshot_2020_04_27_at_18_08_25.jpg

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you are using studio:

Add new related fields: phone ,email  (Make them invisible)

Then go to Search View > auto completion and add the two fields.



อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can inherit the corresponding search view make necessary changes(same thing can also be done from ui, using the debug mode), see: How To Inherit And Make Changes Inside Existing Search Views In Odoo

For doing it from the user interface, activate the debug mode and click the debugger button and click Edit Search View/ Edit Control Panel View, then add the necessary fields you need to search inside the view.


Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Rostyslav Sulym,

You can add filed in search view by adding your field in new view which must be inherited from the existing search view. 

<record id="sale_order_view_search_inherit_quotation" model="ir.ui.view">

            <field name="name">sale.order.search.inherit.quotation</field>

            <field name="model">sale.order</field>

            <field name="mode">primary</field>

            <field name="inherit_id" ref="sale.view_sales_order_filter"/>

            <field name="arch" type="xml">

                <xpath expr="//filter[@name='my_sale_orders_filter']" position="after">

                       <field name="your_field_name" />

                       <field name="your_field_name" />

                        <separator />

                       <field name="your_field_name" />

                </xpath>

            </field>

        </record>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
how to use and in search? แก้ไขแล้ว
2
ธ.ค. 22
16350
1
ก.พ. 21
4257
1
เม.ย. 20
142
1
มิ.ย. 19
4278
2
มิ.ย. 18
89