2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Add option to hide inactive parts in search preview window

This commit is contained in:
Oliver
2021-11-04 22:25:35 +11:00
parent ceba5b7312
commit 71bb6fff50
4 changed files with 22 additions and 5 deletions

View File

@ -1012,6 +1012,13 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
'validator': bool,
},
'SEARCH_HIDE_INACTIVE_PARTS': {
'name': _("Hide Inactive Parts"),
'description': _('Hide inactive parts in search preview window'),
'default': False,
'validator': bool,
},
'PART_SHOW_QUANTITY_IN_FORMS': {
'name': _('Show Quantity in Forms'),
'description': _('Display available part quantity in some forms'),