Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In my current OpenERP project all products have three part numbers - the customer's part number, the OEM part number and our internal part number. I was able to add another field for the OEM part number via a custom module without issue, but was wondering if it is possible to make that field searchable from the default search under Products, without having to select 'OEM Part Number' in Advanced Search. I thought it might have something to do with adding 'select=True' in the column definition, but that didn't seem to work. It would be even better if that field was also an option when entering the product name into a Sales Order. Thanks!
The search view has an XML definition, and you need to add the name of the field to it, the same way you added the new field to the XML definition of the form (or tree) view of products.
Look for product.product_search_form_view, inherit and add your new field:
Hi Sudarsan, not sure what your level of familiarity is with custom openerp modules, but here is what my code looks like to inherit the product search form:
<record id="product_search_form_view" model="ir.ui.view">
<field name="inherit_id" ref="product.product_search_form_view"/>
<field name="arch" type="xml">
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/24/14, 4:17 PM|
|Seen: 3163 times|
|Last updated: 7/7/15, 1:50 PM|