[FIX] stock: copying a stock.mvoe shouldn't copy the move_dest_id field otherwise push rule may not be applied (and that ain't good\!)
bzr revid: qdp-launchpad@openerp.com-20140220141531-ij23xtkqkfw5e1b5
This commit is contained in:
parent
c96fbd2c70
commit
5dd1cb2885
|
@ -1500,6 +1500,7 @@ class stock_move(osv.osv):
|
|||
default = default.copy()
|
||||
default['move_orig_ids'] = []
|
||||
default['quant_ids'] = []
|
||||
default['move_dest_id'] = False
|
||||
default['reserved_quant_ids'] = []
|
||||
default['returned_move_ids'] = []
|
||||
default['linked_move_operation_ids'] = []
|
||||
|
@ -2121,8 +2122,6 @@ class stock_move(osv.osv):
|
|||
'product_uos_qty': uos_qty,
|
||||
'state': move.state,
|
||||
'procure_method': 'make_to_stock',
|
||||
'move_dest_id': False,
|
||||
'reserved_quant_ids': [],
|
||||
'restrict_lot_id': restrict_lot_id,
|
||||
'restrict_partner_id': restrict_partner_id,
|
||||
'split_from': move.id,
|
||||
|
@ -2136,7 +2135,6 @@ class stock_move(osv.osv):
|
|||
self.write(cr, uid, [move.id], {
|
||||
'product_uom_qty': move.product_uom_qty - uom_qty,
|
||||
'product_uos_qty': move.product_uos_qty - uos_qty,
|
||||
#'reserved_quant_ids': [(6,0,[])] SHOULD NOT CHANGE as it has been reserved already
|
||||
}, context=ctx)
|
||||
|
||||
if move.move_dest_id and move.propagate:
|
||||
|
|
Loading…
Reference in New Issue