From 3fb56f15c8398e9870a357485b859668ddadebae Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Thu, 10 Apr 2025 14:24:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=8A=9F=E8=83=BD=E5=88=80?= =?UTF-8?q?=E5=85=B7=E7=BB=84=E8=A3=85=E6=97=B6=EF=BC=8C=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E8=B4=A7=E4=BD=8D=E7=BC=96=E7=A0=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=88=80=E5=85=B7=E4=BF=A1=E6=81=AF=E6=89=AB=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E8=B4=A7=E4=BD=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_tool_management/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py index 505ede36..72be50dd 100644 --- a/sf_tool_management/models/base.py +++ b/sf_tool_management/models/base.py @@ -387,7 +387,7 @@ class FunctionalToolAssembly(models.Model): else: raise ValidationError('刀柄选择错误,请重新确认!!!') else: - location = self.env['sf.shelf.location'].sudo().search([('barcode', '=', barcode)]) + location = self.env['sf.shelf.location'].sudo().search([('barcode', '=', barcode.upper())]) if location: if location == record.integral_freight_barcode_id: tool_assembly_id.integral_verify = True