diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e02767b5cc1..ce54bb1821c 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1452,11 +1452,7 @@ class stock_picking(osv.osv): answer = {'filter_loc': False, 'operation_id': False} # Barcode Nomenclatures - #this_picking ==? self - this_picking = self.search(cr, uid, [('id', '=', picking_id)], context=context) - #this_picking = self.read(cr, uid, picking_id, context=context) - rec = self.browse(cr, uid, self, context=context) - barcode_nom = rec.barcode_nomenclature_id + barcode_nom = self.browse(cr, uid, [picking_id], context=context).barcode_nomenclature_id parsed_result = barcode_nom.parse_barcode(barcode_str) #check if the barcode is a weighted barcode or simply a product