From c758d3434a6c717c279b83499e5af9a65be2d492 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Wed, 11 Oct 2017 14:51:20 +0200 Subject: [PATCH] [FIX] if picking type is empty, no picking as to be created --- mrp_subcontracting/models/purchase_order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mrp_subcontracting/models/purchase_order.py b/mrp_subcontracting/models/purchase_order.py index a2fe4a00..f25c8752 100644 --- a/mrp_subcontracting/models/purchase_order.py +++ b/mrp_subcontracting/models/purchase_order.py @@ -25,6 +25,8 @@ def wkf_confirm_order(self): if move.work_order.id == self.mrp_operation.id: if not picking: wc_line = self.mrp_operation.routing_wc_line + if not wc_line.picking_type_id: + continue vals = {'origin': self.mrp_operation.name, 'picking_type_id': wc_line.picking_type_id.id, 'invoice_state': 'none',