From fa91eb88f20f98d73c5a0c8ffffa41463cc68cca Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 3 Dec 2021 09:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index b4fda0b..ae57705 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -227,7 +227,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet): if obj.is_testok: if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST: wproduct.act_state = WProduct.WPR_ACT_STATE_DOWAIT # 复检 - elif wproduct.material == Material.MA_TYPE_GOOD: + elif wproduct.material.type == Material.MA_TYPE_GOOD: wproduct.act_state = WProduct.WPR_ACT_STATE_TOFINALTEST # 成品检验 else: wproduct.act_state = WProduct.WPR_ACT_STATE_OK