mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +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:
@ -775,6 +775,7 @@ class LocationTreeSerializer(InvenTree.serializers.InvenTreeModelSerializer):
|
||||
'name',
|
||||
'parent',
|
||||
'icon',
|
||||
'structural',
|
||||
]
|
||||
|
||||
|
||||
|
@ -650,6 +650,10 @@ $("#stock-return-from-customer").click(function() {
|
||||
{% if item.part.default_location %}
|
||||
value: {{ item.part.default_location.pk }},
|
||||
{% endif %}
|
||||
tree_picker: {
|
||||
url: '{% url "api-location-tree" %}',
|
||||
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
|
||||
},
|
||||
},
|
||||
notes: {
|
||||
icon: 'fa-sticky-note',
|
||||
|
@ -238,9 +238,18 @@
|
||||
{% if stocktake_enable and roles.stocktake.add %}
|
||||
$('#location-stocktake').click(function() {
|
||||
generateStocktakeReport({
|
||||
category: {},
|
||||
category: {
|
||||
tree_picker: {
|
||||
url: '{% url "api-part-category-tree" %}',
|
||||
default_icon: global_settings.PART_CATEGORY_DEFAULT_ICON,
|
||||
},
|
||||
},
|
||||
location: {
|
||||
{% if location %}value: {{ location.pk }},{% endif %}
|
||||
tree_picker: {
|
||||
url: '{% url "api-location-tree" %}',
|
||||
default_icon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
|
||||
},
|
||||
},
|
||||
generate_report: {},
|
||||
update_parts: {},
|
||||
|
Reference in New Issue
Block a user