From dd9584f487d61d2e2ce8d677b1bcc1d696ba3bea Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 30 May 2020 20:58:52 +1000 Subject: [PATCH] Follow link when a new stock item is created --- InvenTree/stock/templates/stock/location.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }}