修复扫码确认后接驳站点被清除的bug

This commit is contained in:
胡尧
2024-09-20 09:38:32 +08:00
parent 402a323673
commit 2b541fe041

View File

@@ -184,7 +184,8 @@ class WorkpieceDeliveryWizard(models.TransientModel):
if not barcode.isdigit():
# 判断是否是AGV接驳站名称
agv_site = self.env['sf.agv.site'].search([('name', '=', barcode)])
self.feeder_station_start_id = agv_site.id # 修正:移除 .id
if agv_site:
self.feeder_station_start_id = agv_site.id # 修正:移除 .id
return
if delivery_type == '上产线':