工艺外协代码回退

This commit is contained in:
liaodanlong
2025-04-27 10:20:45 +08:00
parent 51a633594f
commit bf9f4c1276

View File

@@ -228,7 +228,7 @@ class sf_production_plan(models.Model):
"""
排程方法
"""
self.deal_processing_schedule(self.date_planned_start)
self.deal_processing_schedule(self[0].date_planned_start)
for record in self:
if not record.production_line_id:
raise ValidationError("未选择生产线")