diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 82c03ec2d4a..5dce727f799 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1658,7 +1658,7 @@ class stock_picking(osv.osv): todo_on_operations = [] #check if the barcode correspond to a product - matching_product_ids = product_obj.search(cr, uid, ['|', ('code', '=', barcode_str), ('ean13', '=', barcode_str)], context=context) + matching_product_ids = product_obj.search(cr, uid, [('ean13', '=', barcode_str)], context=context) # TOCHECK: search on code too? if matching_product_ids: if len(matching_product_ids) > 1: error_msg = _('Wrong bar code detected: more than one product matching the given barcode')