Odoo Help


Product Search According to Internal Reference

Sansal Birbas
on 12/3/14, 1:03 AM 2,292 views

Hi All,

I want to be able to search for my products not just according to their names but also internal references in products page. For this purpose, i went to developer mode and tried to open search view on products page. But it was empty. I could not do anything. Could you please help me with this?

Thanks in advance.




| 5 3 6
Jakarta, Indonesia
On 12/3/14, 1:18 AM

It is by default search through the Internal Reference if you enter the a string into the search bar.  Product's name_search has been inherited to search the entered string against default_code (Internal Reference) first, then ean13 and then name to return the results (see odoo/addons/product/product.py)

I believe this is only true if Sansal is viewing the product variants. The Products menu item actually opens the product templates view.

Matt Taylor
on 12/4/14, 4:29 PM
Sansal Birbas
On 12/4/14, 12:39 AM

But when ı try such searches ıt doesnt happen so. 

I'm not sure what make it so. It may be other modules that interferes with it. If you can (back up the database first), uninstall all non-official modules and see if it works.

on 12/4/14, 2:09 AM
Matt Taylor
On 12/4/14, 4:40 PM

The Products menu item opens a list of product templates.  If you want to search by Internal Reference (default_code), you have 3 options:

  1. then you can use the Product Variants menu item
  2. Modify the search view on product template
  3. Use the advanced search on product template tree view

Click the Manage Views item from the Developer Mode menu.  You can edit the view from Settings --> Technical --> User Interface --> Views.  Look for a view named "product.template.search."

This is an irritation that you can read more about here:


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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/3/14, 1:03 AM
Seen: 2292 times
Last updated: 3/28/17, 4:11 AM