[IMP] stock: WIP packaging
bzr revid: qdp-launchpad@openerp.com-20130627132547-fw46onric52cm83f
This commit is contained in:
parent
3066caea48
commit
6785decc5a
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue