[FIX] PRODUCT : fixed name_search for proper operator supplied.
bzr revid: cpa@tinyerp.com-20101025065625-x6m4m80fvddwr1b3
This commit is contained in:
parent
a8b160970d
commit
58407193d7
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue