坯料自加工的切割工序状态也判断了编程状态
This commit is contained in:
@@ -1210,6 +1210,7 @@ class ResMrpWorkOrder(models.Model):
|
||||
# ================= 如果制造订单制造类型为【人工线下加工】==========================
|
||||
if (workorder.production_id.production_type == '人工线下加工'
|
||||
and workorder.production_id.schedule_state == '已排'
|
||||
and workorder.routing_type == '人工线下加工'
|
||||
and len(workorder.production_id.picking_ids.filtered(
|
||||
lambda w: w.state not in ['done', 'cancel'])) == 0
|
||||
and workorder.production_id.programming_state == '已编程'):
|
||||
|
||||
Reference in New Issue
Block a user