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

Feature/Tree picker (#5595)

* Show only the current modal over the backdrop, move others behind

* Added initial draft for tree picker

* Added filters to tree picker

* Added tree picker to more location fields

* Fixed bug with missing input group and filters side effect

* Added tree picker to part category inputs

* Added missing picker for part category parent input

* Fixed disabled items

* Fix js linting errors

* trigger: ci

* Bump api_version.py

* Update api_version.py
This commit is contained in:
Lukas
2023-10-04 15:11:49 +02:00
committed by GitHub
parent 3d8e3f1625
commit 9b4e1743c7
17 changed files with 281 additions and 60 deletions

View File

@@ -136,6 +136,10 @@ function stockLocationFields(options={}) {
parent: {
help_text: '{% trans "Parent stock location" %}',
required: false,
tree_picker: {
url: '{% url "api-location-tree" %}',
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
},
},
name: {},
description: {},
@@ -323,6 +327,10 @@ function stockItemFields(options={}) {
filters: {
structural: false,
},
tree_picker: {
url: '{% url "api-location-tree" %}',
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
},
},
quantity: {
help_text: '{% trans "Enter initial quantity for this stock item" %}',
@@ -878,7 +886,11 @@ function mergeStockItems(items, options={}) {
icon: 'fa-sitemap',
filters: {
structural: false,
}
},
tree_picker: {
url: '{% url "api-location-tree" %}',
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
},
},
notes: {
icon: 'fa-sticky-note',
@@ -3095,7 +3107,11 @@ function uninstallStockItem(installed_item_id, options={}) {
icon: 'fa-sitemap',
filters: {
structural: false,
}
},
tree_picker: {
url: '{% url "api-location-tree" %}',
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
},
},
note: {
icon: 'fa-sticky-note',