Skip to Content
Menu
This question has been flagged
2 Replies
5299 Views

Each of our parts has a part number (also drawing number) & description (also description on drawing).  We need both these items in our ERP system & need both fields searched when searching.  We are putting the drawing number as the name and the description in the "Description for Quotations" & the "Description for Vendors" fields.

We need to be able to search the "Description for Quotations" & the "Description for Vendors" fields for each product.

How do I make the default search box include these fields when it's searching?

Or should we structure this differently?

Avatar
Discard
Best Answer

The default fields used for searching in Products are:

Internal Reference - a great place for product part numbers, sku's, item codes, etc

Name - a short product name

Barcode - self explanatory


You can see this in the SEARCH VIEW definition:

<field name="name" string="Product" filter_domain="['|','|',('default_code','ilike',self),('name','ilike',self),('barcode','ilike',self)]"/>


If you want to change or add fields, you would modify that same line (or rather, create your own view that inherits and overrides the Odoo view and replace filter_domain with your own choices).


See http://ursainfosystems.com/homesite/upgrade-safe-changes-to-odoo-views/ for more information.

Avatar
Discard
Author Best Answer

Thanks for responding.  I'm having some difficulty finding exactly how to edit the search view definition.  Any suggestions?  I'm using odoo version 10.  

Avatar
Discard