排程
This commit is contained in:
@@ -224,11 +224,11 @@ class sf_production_plan(models.Model):
|
||||
|
||||
return num
|
||||
|
||||
def do_production_schedule(self,date_planned_start):
|
||||
def do_production_schedule(self):
|
||||
"""
|
||||
排程方法
|
||||
"""
|
||||
self.deal_processing_schedule(date_planned_start)
|
||||
self.deal_processing_schedule(self.date_planned_start)
|
||||
for record in self:
|
||||
if not record.production_line_id:
|
||||
raise ValidationError("未选择生产线")
|
||||
|
||||
@@ -40,5 +40,5 @@ class Action_Plan_All_Wizard(models.TransientModel):
|
||||
self.plan_ids.date_planned_start = self.date_planned_start
|
||||
# 在这里添加您的逻辑来处理这些ID
|
||||
# 判断能否排成
|
||||
self.plan_ids.do_production_schedule(self.date_planned_start)
|
||||
self.plan_ids.do_production_schedule()
|
||||
_logger.info('处理计划: %s 完成', self.plan_ids.ids)
|
||||
|
||||
Reference in New Issue
Block a user