From fcbe33714ec7c30425418505083f100ec7393fe4 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Tue, 5 Mar 2024 11:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_production.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 2ca0dbc6..d843c283 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -96,6 +96,8 @@ class MrpProduction(models.Model): # production.state = 'completed' elif production.state == 'pending_processing' and production.schedule_state == '已完成': production.state = 'completed' + elif production.state == 'progress' and production.schedule_state == '已完成': + production.state = 'completed' def action_check(self): """