From 6785decc5a77b1a364b7c2e0e25dda1117a728f2 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 27 Jun 2013 15:25:47 +0200 Subject: [PATCH] [IMP] stock: WIP packaging bzr revid: qdp-launchpad@openerp.com-20130627132547-fw46onric52cm83f --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')