Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to list EAN 13 Barcode first in search view of a custom module

By
Odoo
on 1/8/15, 5:39 AM 583 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> -->

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/8/15, 6:25 AM

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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/8/15, 5:39 AM
Seen: 583 times
Last updated: 3/16/15, 8:10 AM