Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/制造功能优化

This commit is contained in:
mgw
2025-02-27 14:00:58 +08:00

View File

@@ -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()