From ca01b055b861ed7b897b2f2d206e4be5cdfb73e3 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Tue, 23 Apr 2024 16:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=8E=92=E7=A8=8B=E6=97=B6=E8=AE=A1=E5=88=92=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9=E6=98=8E=E5=A4=A9-?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=8E=92=E7=A8=8B=E5=90=8E=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8F=98=E6=88=90=E4=BB=8A=E5=A4=A9=E4=BA=86=20=20=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_plan/models/custom_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py index 5f0d254b..a9f88c26 100644 --- a/sf_plan/models/custom_plan.py +++ b/sf_plan/models/custom_plan.py @@ -200,7 +200,7 @@ class sf_production_plan(models.Model): if item.name == 'CNC加工': item.date_planned_finished = datetime.now() + timedelta(days=100) # item.date_planned_start = record.date_planned_start - item.date_planned_start = datetime.now() + item.date_planned_start = self.date_planned_start if self.date_planned_start else datetime.now() record.sudo().production_id.plan_start_processing_time = item.date_planned_start item.date_planned_finished = item.date_planned_start + timedelta( minutes=record.env['mrp.routing.workcenter'].sudo().search(