修复配送时agv站点验证
This commit is contained in:
@@ -1176,7 +1176,9 @@ class WorkPieceDelivery(models.Model):
|
|||||||
item.feeder_station_start_id.name, item.feeder_station_start_id.state))
|
item.feeder_station_start_id.name, item.feeder_station_start_id.state))
|
||||||
logging.info('工件配送-终点状态:%s-%s' % (
|
logging.info('工件配送-终点状态:%s-%s' % (
|
||||||
item.feeder_station_destination_id.name, item.feeder_station_destination_id.state))
|
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
|
is_free = True
|
||||||
logging.info('is_free:%s' % is_free)
|
logging.info('is_free:%s' % is_free)
|
||||||
return is_free
|
return is_free
|
||||||
|
|||||||
Reference in New Issue
Block a user