From c3a2dae9542e3f633cddc6f7d9a6b3920a8f8ec7 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 13 Nov 2014 10:23:08 +0100 Subject: [PATCH] [FIX] stock: retrieval of the current stock.picking improved --- addons/stock/stock.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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