[FIX] stock: use unit of measure for manual receptions
When using the manual reception wizard, if a quantity in a different unit of measure was set, the unit was ignored. opw 617336
This commit is contained in:
parent
056ab55b6b
commit
0b2bc27adc
|
@ -2724,9 +2724,11 @@ class stock_move(osv.osv):
|
|||
continue
|
||||
partial_data = partial_datas.get('move%s'%(move.id), False)
|
||||
assert partial_data, _('Missing partial picking data for move #%s.') % (move.id)
|
||||
product_qty = partial_data.get('product_qty',0.0)
|
||||
product_uom = partial_data.get('product_uom', False)
|
||||
product_qty = partial_data.get('product_qty', 0.0)
|
||||
product_qty = self.pool['product.uom']._compute_qty(cr, uid, product_uom, product_qty, move.product_uom.id)
|
||||
move_product_qty[move.id] = product_qty
|
||||
product_uom = partial_data.get('product_uom',False)
|
||||
|
||||
product_price = partial_data.get('product_price',0.0)
|
||||
product_currency = partial_data.get('product_currency',False)
|
||||
prodlot_ids[move.id] = partial_data.get('prodlot_id')
|
||||
|
|
Loading…
Reference in New Issue