diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 9785cc3c3d..ac7d151413 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -65,7 +65,12 @@ function updateStock(items, options={}) { html += ''; html += '' + item.part.name + ''; - html += '' + item.location.name + ''; + + if (item.location) { + html += '' + item.location.name + ''; + } else { + html += 'No location set'; + } html += "' + loc.description + ''); } - html += "

"; + html += "
"; - html += "The following stock items will be moved: