From 391a172016665fde825cc429adcd66567c406c4f Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Sat, 11 May 2024 22:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=B6=E9=80=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=8A=A0=E5=B7=A5=E6=97=A0=E7=8A=B6=E6=80=81=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_manufacturing/models/mrp_production.py | 2 +- sf_plan/models/custom_plan.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 405fd1d5..33363a8a 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -67,7 +67,7 @@ class MrpProduction(models.Model): ('待加工', '待加工'), ('待解除装夹', '待解除装夹'), ('已完工', '已完工'), - ], string='工序状态') + ], string='工序状态', default='待装夹') # 零件图号 part_number = fields.Char('零件图号') diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py index b2f04edd..14c8dd93 100644 --- a/sf_plan/models/custom_plan.py +++ b/sf_plan/models/custom_plan.py @@ -219,6 +219,7 @@ class sf_production_plan(models.Model): record.state = 'done' # record.production_id.schedule_state = '已排' record.sudo().production_id.schedule_state = '已排' + record.sudo().production_id.process_state = '待装夹' # self.env['sale.order'].browse(record.production_id.origin).schedule_status = 'to process' sale_obj = self.env['sale.order'].search([('name', '=', record.origin)]) if 'S' in sale_obj.name: