表面工艺采购单确认订单限制,自动化产线加工路线逻辑矫正

This commit is contained in:
liaodanlong
2025-01-02 12:50:39 +08:00
parent 0ce51a4a66
commit 2f3e12e3af

View File

@@ -401,7 +401,7 @@ class RePurchaseOrder(models.Model):
artificial_offline = (
workorder.production_id.production_type == '人工线下加工' and workorder.production_id.schedule_state != '已排')
auto_production = (
workorder.production_id.production_type == '自动化产线加工' and workorder.production_id.schedule_state != '已编程')
workorder.production_id.production_type == '自动化产线加工' and workorder.production_id.programming_state != '已编程')
if workorder.sequence == min_sequence_wk.sequence:
if artificial_offline or auto_production:
raise UserError('等待组件')