状态计算

This commit is contained in:
liaodanlong
2025-01-06 13:39:21 +08:00
parent b6f3382e5d
commit 196b427867

View File

@@ -1069,6 +1069,7 @@ class ResMrpWorkOrder(models.Model):
continue
else:
workorder.state = 'ready'
continue
# ================= 如果制造订单刀具状态为[无效刀、缺刀] 或者 制造订单状态为[返工]==========================
if (workorder.production_id.tool_state in ['1', '2'] or workorder.production_id.state == 'rework'
or workorder.production_id.schedule_state != '已排'