From acfc09596b716b57f0895ef3b0b0936c5e91a2bf Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Thu, 20 Feb 2025 17:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=80=E5=85=B7=E7=BC=96=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/models/tool_base_new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_base/models/tool_base_new.py b/sf_base/models/tool_base_new.py index 3517766d..f4ccd085 100644 --- a/sf_base/models/tool_base_new.py +++ b/sf_base/models/tool_base_new.py @@ -187,7 +187,7 @@ class CuttingToolModel(models.Model): def _get_ids(self, cutting_tool_type_code, factory_short_name): cutting_tool_type_ids = [] for item in cutting_tool_type_code: - cutting_tool_type = self.search([('code', '=', item.replace("JKM", factory_short_name))]) + cutting_tool_type = self.search([('code', '=', item)]) if cutting_tool_type: cutting_tool_type_ids.append(cutting_tool_type.id) return [(6, 0, cutting_tool_type_ids)]