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

Product Search According to Internal Reference

By
Sansal Birbas
on 12/3/14, 1:03 AM 1,480 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.

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
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
0
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.

Ivan
on 12/4/14, 2:09 AM
0
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:

https://www.odoo.com/forum/help-1/question/why-does-the-menu-item-for-products-open-product-templates-view-63510

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: 12/3/14, 1:03 AM
Seen: 1480 times
Last updated: 3/16/15, 8:10 AM