From: Quentin (OpenERP) Date: Wed, 26 Jun 2013 14:14:01 +0000 (+0200) Subject: [FIX] stock: fix field name X-Git-Tag: InsPy_master01~61^2~946 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=7ae6f4d933f5e65404c248164cf80117bce9a26b;p=odoo%2Fodoo.git [FIX] stock: fix field name bzr revid: qdp-launchpad@openerp.com-20130626141401-816utj7k6mop91ad --- diff --git a/addons/stock/stock.py b/addons/stock/stock.py index c2f0d16..e3ffd21 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1637,7 +1637,7 @@ class stock_picking(osv.osv): error_msg = '' #check if the barcode correspond to a product - matching_product_ids = product_obj.search(cr, uid, ['|', ('code', '=', barcode_str), ('ean', '=', barcode_str)], context=context) + matching_product_ids = product_obj.search(cr, uid, ['|', ('code', '=', barcode_str), ('ean13', '=', barcode_str)], context=context) if matching_product_ids: if len(matching_product_ids) > 1: error_msg = _('Wrong bar code detected: more than one product matching the given barcode')