From bcafd9cf38a3227dc26bd567092bd4f5641c3088 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Fri, 25 Apr 2025 11:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90sf.t-=E8=AE=A1=E5=88=92=E3=80=91?= =?UTF-8?q?=E5=9C=A8=E6=8E=92=E7=A8=8B=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=97=B6=E9=97=B4=E6=AE=B5=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=8E=92=E7=A8=8B=E6=97=B6=E6=9C=AA=E6=A0=A1=E9=AA=8C=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E6=9C=89=E6=95=88=E5=B7=A5=E4=BD=9C=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_plan/models/custom_plan.py | 4 ++-- sf_plan/wizard/action_plan_some.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py index af5b387f..20ae4967 100644 --- a/sf_plan/models/custom_plan.py +++ b/sf_plan/models/custom_plan.py @@ -224,11 +224,11 @@ class sf_production_plan(models.Model): return num - def do_production_schedule(self): + def do_production_schedule(self,date_planned_start): """ 排程方法 """ - self.deal_processing_schedule(self.date_planned_start) + self.deal_processing_schedule(date_planned_start) for record in self: if not record.production_line_id: raise ValidationError("未选择生产线") diff --git a/sf_plan/wizard/action_plan_some.py b/sf_plan/wizard/action_plan_some.py index 78726c4d..1145af9f 100644 --- a/sf_plan/wizard/action_plan_some.py +++ b/sf_plan/wizard/action_plan_some.py @@ -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.plan_ids.do_production_schedule(self.date_planned_start) _logger.info('处理计划: %s 完成', self.plan_ids.ids)