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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user