[FIX] stock: action_done: picking_type_id in created move

If the user only fills move lines and not move, this method will create
the needed ones. When creating them, a picking_type_id was not set.

task-1830757
This commit is contained in:
Simon Lejeune
2018-06-11 17:01:15 +02:00
parent d8887c5346
commit d4eb1e33a1
+1
View File
@@ -627,6 +627,7 @@ class Picking(models.Model):
'location_id': pick.location_id.id,
'location_dest_id': pick.location_dest_id.id,
'picking_id': pick.id,
'picking_type_id': pick.picking_type_id.id,
})
ops.move_id = new_move.id
new_move._action_confirm()