[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user