diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index bc187588d0..56ef8a3370 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -144,11 +144,15 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {% trans "Build Order" %} {{ item.build_order }} - {% elif item.location %} + {% else %} {% trans "Location" %} + {% if item.location %} {{ item.location.name }} + {% else %} + {% trans "No location set" %} + {% endif %} {% endif %} {% if item.uid %} diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 478776c421..f92539cab8 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -189,9 +189,7 @@ $('#item-create').click(function () { launchModalForm("{% url 'stock-item-create' %}", { - success: function() { - $("#stock-table").bootstrapTable('refresh'); - }, + follow: true, data: { {% if location %} location: {{ location.id }}