修改工件拆卸

This commit is contained in:
胡尧
2024-09-10 16:13:57 +08:00
parent 2d5ef0aae4
commit 40f327ea17
5 changed files with 91 additions and 82 deletions

View File

@@ -270,6 +270,7 @@ class ResMrpWorkOrder(models.Model):
"""
获取关联的制造订单下产线的agv任务
"""
self.ensure_one()
workorder_ids = self.production_id.workorder_ids
cnc_workorder = workorder_ids.filtered(
lambda w: w.routing_type == 'CNC加工' and w.state == 'done' and w.processing_panel == self.processing_panel