修复配送时agv站点验证

This commit is contained in:
jinling.yang
2024-04-28 11:43:11 +08:00
parent 5eb946d936
commit 24722f474c

View File

@@ -1176,7 +1176,9 @@ class WorkPieceDelivery(models.Model):
item.feeder_station_start_id.name, item.feeder_station_start_id.state))
logging.info('工件配送-终点状态:%s-%s' % (
item.feeder_station_destination_id.name, item.feeder_station_destination_id.state))
if item.feeder_station_start_id.state == '占用' and item.feeder_station_destination_id.state == '空闲':
if (
item.feeder_station_start_id.state == '占用' and item.feeder_station_destination_id.state == '空闲') or (
item.feeder_station_start_id.state == '空闲' and item.feeder_station_destination_id.state == '空闲'):
is_free = True
logging.info('is_free:%s' % is_free)
return is_free