diff --git a/InvenTree/InvenTree/static/script/inventree/part.js b/InvenTree/InvenTree/static/script/inventree/part.js index 05328dbbd8..7954caa012 100644 --- a/InvenTree/InvenTree/static/script/inventree/part.js +++ b/InvenTree/InvenTree/static/script/inventree/part.js @@ -81,15 +81,19 @@ function loadPartTable(table, url, options={}) { * - table: HTML reference to the table * - url: Base URL for API query * - options: object containing following (optional) fields - * allowInactive: If true, allow display of inactive parts * checkbox: Show the checkbox column * query: extra query params for API request * buttons: If provided, link buttons to selection status of this table + * disableFilters: If true, disable custom filters */ var params = options.params || {}; - var filters = loadTableFilters("parts"); + var filters = {}; + + if (!options.disableFilters) { + filters = loadTableFilters("parts"); + } for (var key in params) { filters[key] = params[key]; diff --git a/InvenTree/InvenTree/static/script/inventree/stock.js b/InvenTree/InvenTree/static/script/inventree/stock.js index bf0ddbef5e..d68d0946a2 100644 --- a/InvenTree/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/InvenTree/static/script/inventree/stock.js @@ -41,6 +41,7 @@ function loadStockTable(table, options) { * groupByField - Column for grouping stock items * buttons - Which buttons to link to stock selection callbacks * filterList -