Merge pull request #113 from rooftopcellist/smart_inventory_edit

Changes Smart Inventory Error Message
This commit is contained in:
Christian Adams
2017-07-31 11:57:53 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -2511,7 +2511,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