From d4eb1e33a1073e218b9fce6f56e09b32e4229a6f Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 4 Jun 2018 21:09:05 +0200 Subject: [PATCH] [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 --- addons/stock/models/stock_picking.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index c60591d8e4f..25ce8fb24b9 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -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()