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.
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)
The Products menu item opens a list of product templates. If you want to search by Internal Reference (default_code), you have 3 options:
- then you can use the Product Variants menu item
- Modify the search view on product template
- 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:
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
|Asked: 12/3/14, 1:03 AM|
|Seen: 1343 times|
|Last updated: 3/16/15, 8:10 AM|