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',