2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Stock API filtering fix (#4350)

* Improve filtering options for StockItem list

- Make use of StockFilter introspection

* Remove outdated filter

* remove outdated "max_results" parameter

* Fix cascade issue for stocklist API

* Add relationship filters to the StockItemFilter

* Fix filtering by 'status' and 'allocated'

* Refactor 'customer' and 'expired' filters

* Cleanup

* Adds unit test for top-level stock location filtering
This commit is contained in:
Oliver
2023-02-17 10:34:18 +11:00
committed by GitHub
parent b02ce1f01e
commit 6627a8097b
5 changed files with 108 additions and 165 deletions

View File

@ -2742,7 +2742,7 @@ function loadInstalledInTable(table, options) {
table.inventreeTable({
url: '{% url "api-stock-list" %}',
queryParams: {
installed_in: options.stock_item,
belongs_to: options.stock_item,
part_detail: true,
},
formatNoMatches: function() {