[FIX] stock: retrieval of the current stock.picking improved
This commit is contained in:
committed by
Frédéric van der Essen
parent
eb0ee0f23c
commit
c3a2dae954
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user