This question has been flagged
1 Reply
2405 Views

  Hi all,

When I add custom search view  in product it shows  ean13 in last field of search view.I want to show list  this ean13 in first .How to change my code
        <!-- <record id="product_template_search_custom_view" model="ir.ui.view">
            <field name="name">product.template.customsearch</field>
            <field name="model">product.template</field>
             <field name="inherit_id" ref="product.product_template_search_view"/>
             <field name="arch" type="xml">
                <search string="Product">
                    <field name="ean13" string="EAN 13 Baarcode"/>
                </search>
            </field>
        </record> -->

Avatar
Discard
Best Answer

Use xpath to get the first() field and put ean13 before that. <xpath expr="//field[fisrt()]" position="before"><field name="ean13" string="EAN 13 Baarcode"/></xpath>

Avatar
Discard