From fabcca118858bb75c20ca162329a1b198444c9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Tue, 19 Nov 2024 14:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=A8=8B=E5=8D=95=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89=E5=85=B3=E8=81=94=E5=88=B6=E9=80=A0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=A4=84=E4=BA=8E=E8=8D=89=E7=A8=BF=E8=B7=9F=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E7=8A=B6=E6=80=81?= 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 2cb89678..e357f93e 100644 --- a/sf_plan/models/custom_plan.py +++ b/sf_plan/models/custom_plan.py @@ -97,7 +97,7 @@ class sf_production_plan(models.Model): 修改搜索方法,只有制造订单状态为待排程时才显示 """ domain = domain or [] - domain.append(('production_id.state', '!=', 'confirmed')) + domain.append(('production_id.state', 'not in', ['draft', 'technology_to_confirmed'])) info = super(sf_production_plan, self).search_read(domain, fields, offset, limit, order) return info