2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-22 01:06:50 +00:00

Feature: Auto-select items tab for final stock locations (#11766) (#11955)

* Enhance: Auto-select items tab for final stock locations/categories

* Fix biome formatting in PanelGroup.tsx

* Change default setting to False per review

* Refactor: Rename setting to DISPLAY_ITEMS_FINAL_LEVEL to apply generically to both locations and categories per review

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
Aditya Kumar Mishra
2026-05-17 14:36:00 +05:30
committed by GitHub
parent c09848422c
commit 582013e51c
5 changed files with 43 additions and 1 deletions
@@ -268,4 +268,12 @@ USER_SETTINGS: dict[str, InvenTreeSettingsKeyType] = {
'description': _('Save the last used printing machines for a user'),
'default': '',
},
'DISPLAY_ITEMS_FINAL_LEVEL': {
'name': _('Display Items at Final Level'),
'description': _(
'Automatically default to showing items/parts instead of sub-levels for locations or categories with no children'
),
'default': False,
'validator': bool,
},
}