diff --git a/addons/product/product.py b/addons/product/product.py index 29a7de0cbab..728663b1479 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -1130,6 +1130,8 @@ class product_product(osv.osv): ids = self.search(cr, user, [('default_code','=',name)]+ args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context) + if not ids: + ids = self.search(cr, user, [('x_sysmo_barcode','=',name)]+ args, limit=limit, context=context) if not ids and operator not in expression.NEGATIVE_TERM_OPERATORS: # Do not merge the 2 next lines into one single search, SQL search performance would be abysmal # on a database with thousands of matching products, due to the huge merge+unique needed for the