Is there any way to search product using its barcode in products list view. It seems to be easy by modifying search view. I did it but without success any help is appreciated.
The question has been closedby
Salam Alaykom ;)
You can do it by activating the developer mode (About OpenERP->Activate Developer Mode), then navigate to Warehouse->Products->Products, from the debug menu choose 'Edit SearchView' and insert the following line of code as the first line in the view:
<field name="ean13" string="EAN13" filter_domain="[('ean13','ilike',self)]"/>
This will answer your question. However, you can also show the ean13 as a column in the list view as well, from debug menu choose 'Edit TreeView' and insert the following line of code as the first line in the view:
Hope it Helps..%
I understand, but I am now getting two drop-downs - the first is EAN, and the other is the default (name). Can it not be integrated into one, with the possibility of adding further fields if needs be? This is now somewhat of an issue as searching by name requires me to press down on the keyboard as it defaults to search by EAN.
What is the syntax to add search fields into one search result entry? I would be interested in searching other fields, which would result in many entries in the drop-down results list.
A 'global' product attribute search so to speak would be ideal.
You can do like this in search VIEW of product:
<field name="name" string="Product" filter_domain="['|','|',('name','ilike',self),('default_code','ilike',self),('ean13','ilike',self)]"/>
Email : firstname.lastname@example.org
Skype : acespritech
Blog : acespritechblog.wordpress.com