Accept Merge Request #1995: (feature/刀具组装扫描优化 -> develop)

Merge Request: 处理功能刀具组装时,有时扫描货位编码验证刀具信息扫不到货位的问题

Created By: @禹翔辉
Reviewed By: @胡尧
Approved By: @胡尧 
Accepted By: @禹翔辉
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1995
This commit is contained in:
禹翔辉
2025-04-10 14:27:04 +08:00
committed by Coding

View File

@@ -387,7 +387,7 @@ class FunctionalToolAssembly(models.Model):
else: else:
raise ValidationError('刀柄选择错误,请重新确认!!!') raise ValidationError('刀柄选择错误,请重新确认!!!')
else: 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:
if location == record.integral_freight_barcode_id: if location == record.integral_freight_barcode_id:
tool_assembly_id.integral_verify = True tool_assembly_id.integral_verify = True