diff --git a/InvenTree/stock/templates/stock/item_childs.html b/InvenTree/stock/templates/stock/item_childs.html index 1a8febbbea..a271852846 100644 --- a/InvenTree/stock/templates/stock/item_childs.html +++ b/InvenTree/stock/templates/stock/item_childs.html @@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), { part_details: true, ancestor: {{ item.id }}, }, + name: 'item-childs', groupByField: 'location', buttons: [ '#stock-options', diff --git a/InvenTree/templates/js/stock.html b/InvenTree/templates/js/stock.html index 9a9e629efe..7de6f01669 100644 --- a/InvenTree/templates/js/stock.html +++ b/InvenTree/templates/js/stock.html @@ -238,7 +238,7 @@ function loadStockTable(table, options) { var filters = {}; - var filterKey = options.filterKey || "stock"; + var filterKey = options.filterKey || options.name || "stock"; if (!options.disableFilters) { filters = loadTableFilters(filterKey);