2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-14 06:31:27 +00:00

Add setting to show location path as plain text in tables (#9960)

* Add setting to show location path as plain text in tables

* Use the Location Path setting also for Default Location in the PartTable

* Add setting to show PartCategoty as plain text

* Set DefaultLocationColumn defaultVisible to false

* Fix typo

* Simplify settings keys

* Simplify the name attribute

* Fix typo

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
gunstr
2025-07-09 03:19:05 +02:00
committed by GitHub
parent b6c8db56fb
commit 223287b1e1
6 changed files with 111 additions and 27 deletions

View File

@@ -225,6 +225,22 @@ USER_SETTINGS: dict[str, InvenTreeSettingsKeyType] = {
'default': False,
'validator': bool,
},
'SHOW_FULL_LOCATION_IN_TABLES': {
'name': _('Show full stock location in tables'),
'description': _(
'Disabled: The full location path is displayed as a hover tooltip. Enabled: The full location path is displayed as plain text.'
),
'default': False,
'validator': bool,
},
'SHOW_FULL_CATEGORY_IN_TABLES': {
'name': _('Show full part categories in tables'),
'description': _(
'Disabled: The full category path is displayed as a hover tooltip. Enabled: The full category path is displayed as plain text.'
),
'default': False,
'validator': bool,
},
'NOTIFICATION_ERROR_REPORT': {
'name': _('Receive error reports'),
'description': _('Receive notifications for system errors'),