[FIX] stock: Make sure we can do a return of a stock move with UoS
This commit is contained in:
@@ -142,7 +142,7 @@ class stock_return_picking(osv.osv_memory):
|
||||
move_obj.copy(cr, uid, move.id, {
|
||||
'product_id': data_get.product_id.id,
|
||||
'product_uom_qty': new_qty,
|
||||
'product_uos_qty': uom_obj._compute_qty(cr, uid, move.product_uom.id, new_qty, move.product_uos.id),
|
||||
'product_uos_qty': new_qty * move.product_uos_qty / move.product_uom_qty,
|
||||
'picking_id': new_picking,
|
||||
'state': 'draft',
|
||||
'location_id': move.location_dest_id.id,
|
||||
|
||||
Reference in New Issue
Block a user