Skip to content

Commit

Permalink
[FIX] stock: Make sure we can do a return of a stock move with UoS
Browse files Browse the repository at this point in the history
  • Loading branch information
jco-odoo committed Mar 11, 2015
1 parent 656f5a4 commit 1ac4d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/wizard/stock_return_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _create_returns(self, cr, uid, ids, context=None):
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,
Expand Down

0 comments on commit 1ac4d31

Please sign in to comment.