[FIX] PRODUCT : fixed name_search for proper operator supplied.

bzr revid: cpa@tinyerp.com-20101025065625-x6m4m80fvddwr1b3
This commit is contained in:
cpa-openerp 2010-10-25 12:26:25 +05:30
parent a8b160970d
commit 58407193d7
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class product_product(osv.osv):
if not context:
context={}
if name:
ids = self.search(cr, user, [('default_code','=',name)]+ args, limit=limit, context=context)
ids = self.search(cr, user, [('default_code',operator,name)]+ args, limit=limit, context=context)
if not len(ids):
ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context)
if not len(ids):