diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 8470530c..25626f71 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -1224,7 +1224,7 @@ class ResMrpWorkOrder(models.Model): if (workorder.production_id.production_type == '人工线下加工' and workorder.production_id.schedule_state == '已排' and len(workorder.production_id.picking_ids.filtered( - lambda w: w.state not in ['done', 'cancel'])) == 0): + lambda w: w.state in ['done', 'cancel'])) >= 2): # and workorder.production_id.programming_state == '已编程' if workorder.is_subcontract is True: purchase_orders_id = self._get_surface_technics_purchase_ids()