From 27f77452313143dfa83c8e3393da91f509696afe Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 27 Aug 2020 08:37:18 +1000 Subject: [PATCH 1/2] Follow link to newly created StockItem --- InvenTree/stock/templates/stock/location.html | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 75e2053076..efa6bf53d1 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -205,6 +205,7 @@ $('#item-create').click(function () { createNewStockItem({ + follow: true, data: { {% if location %} location: {{ location.id }} From b17c3f6e0fcddfdf38d596526ef2327658876996 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 27 Aug 2020 08:41:38 +1000 Subject: [PATCH 2/2] Fix for empty option --- InvenTree/InvenTree/static/script/inventree/modals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/static/script/inventree/modals.js b/InvenTree/InvenTree/static/script/inventree/modals.js index e0a24b4e4f..a17cee0d2c 100644 --- a/InvenTree/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/InvenTree/static/script/inventree/modals.js @@ -77,7 +77,7 @@ function setFieldOptions(fieldName, optionList, options={}) { if (addEmptyOption) { // Add an 'empty' option at the top of the list - field.append(makeOption('---------', '', '---------')); + field.append(``); } optionList.forEach(function(option) {