[FIX] Fix the name_search method of product_product
lp bug: https://launchpad.net/bugs/726415 fixed bzr revid: quentin@tempo-quentin-20110228093450-pffa9txsgza5eamm
This commit is contained in:
@@ -557,7 +557,7 @@ class product_product(osv.osv):
|
||||
if not args:
|
||||
args=[]
|
||||
if name:
|
||||
ids = self.search(cr, user, [('default_code',operator,name)]+ args, limit=limit, context=context)
|
||||
ids = self.search(cr, user, [('default_code','=',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):
|
||||
|
||||
Reference in New Issue
Block a user