Changes Smart Inventory Error Message

This commit is contained in:
adamscmRH
2017-07-31 09:09:05 -04:00
parent 3dcd6ef2c2
commit e3525fdbc3
2 changed files with 2 additions and 2 deletions

View File

@@ -2495,7 +2495,7 @@ class InventoryInventorySourcesUpdate(RetrieveAPIView):
successes = 0
failures = 0
if inventory.kind =='smart':
return Response(dict(error=_("Action cannot be completed with Smart Inventory.")), status=status.HTTP_400_BAD_REQUEST)
return Response(dict(error=_("Inventory update cannot be completed with Smart Inventory.")), status=status.HTTP_400_BAD_REQUEST)
for inventory_source in inventory.inventory_sources.exclude(source=''):
details = {'inventory_source': inventory_source.pk, 'status': None}
can_update = inventory_source.can_update