[IMP]: stock: when scrapping some stock move, if the source location is virtual, and if the destination isn't, take the destination location instead of the source as source for the scrapped move
bzr revid: rpa@tinyerp.com-20110113131433-ya5q5ldwrx3jgnra
This commit is contained in:
parent
59052b4b40
commit
2d17e1ee57
|
@ -2221,6 +2221,8 @@ class stock_move(osv.osv):
|
|||
'tracking_id': move.tracking_id.id,
|
||||
'prodlot_id': move.prodlot_id.id,
|
||||
}
|
||||
if move.location_id.usage <> 'internal':
|
||||
default_val.update({'location_id': move.location_dest_id.id})
|
||||
new_move = self.copy(cr, uid, move.id, default_val)
|
||||
|
||||
res += [new_move]
|
||||
|
|
Loading…
Reference in New Issue