[FIX] product: more accurate name_search
authorDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 12:40:02 +0000 (13:40 +0100)
committerDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 12:42:52 +0000 (13:42 +0100)
commit5b2f13abdfed218db9098325061cd6b14eac0d3c
tree2534d4d6265e70b443b49660050c2e64088ab7c4
parentcf488682c82a320589b1241f4b6bd9d59018bfed
[FIX] product: more accurate name_search

First, name_search searches on default_code, then, if the limit is not reached, it searches on the product name
The results found from the default code search must be removed from the search domain when doing the search on the product name, to avoid having results already found by the search on the default_code

opw-618015
addons/product/product.py