处理功能刀具组装时,有时扫描货位编码验证刀具信息扫不到货位的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user