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.
I have added a custom variable I need to make it as the searchable one I need to add the code segment ,
example:- Name = x_RDClass ; Label = Class
where I can get this thing in Odoo "product_search_form_view" to make a custom field searchable ?
To add this code:-
<record model="ir.ui.view" id="product_search_form_view_inherit">
<field name="inherit_id" ref="product.product_search_form_view"/>
<field name="arch" type="xml">
<field name="name" position="replace">
<field name="name" string="Product" filter_domain="['|', ('name','ilike',self), '|', ('default_code','ilike',self), '|', ('commat','ilike',self), '|', ('x_RDClass','ilike',self), '|', ('manufacturer','ilike',self), ('description','ilike',self)]"/>
As a best programming practice, you must always use modular way to add up your customization.
If you are adding the field custom way from GUI, you better do the addition from GUI into the search view of product.
You must do:
<field name="name" position="after">
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: 7/8/15, 1:25 AM|
|Seen: 369 times|
|Last updated: 7/8/15, 7:05 AM|