diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 8fd121c23e..800b23bbb6 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -282,7 +282,7 @@ function moveStockItems(items, options) { for (i = 0; i < response.length; i++) { var loc = response[i]; - html += makeOption(loc.pk, loc.name + ' - ' + loc.description + ''); + html += makeOption(loc.pk, loc.pathstring + ' - ' + loc.description + ''); } html += "
"; @@ -312,10 +312,18 @@ function moveStockItems(items, options) { var item = items[i]; + var name = item.part__IPN; + + if (name) { + name += ' | '; + } + + name += item.part__name; + html += ""; - html += "" + item.part.full_name + ""; - html += "" + item.location.pathstring + ""; + html += "" + name + ""; + html += "" + item.location__path + ""; html += "" + item.quantity + ""; html += ""; diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 41641ff95e..7fa88a646f 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -278,13 +278,15 @@ class StockList(generics.ListCreateAPIView): 'notes', 'location', 'location__name', + 'location__description', 'part', 'part__IPN', 'part__name', 'part__description', 'part__image', 'part__category', - 'part__category__name' + 'part__category__name', + 'part__category__description', ) # Reduce the number of lookups we need to do for categories