2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

Optionally hide 'revision' field (#4493)

* Adds setting to enable / disable revision field

* Optionally hide revision field from part forms

* Hide revision informatoin on part page

* Bug fix for part variant table

- Use existing full_name variable rather than re-creating on the client side

* Optionally hide 'revision' field in part tables
This commit is contained in:
Oliver
2023-03-15 16:44:32 +11:00
committed by GitHub
parent 8d4ffcf682
commit 324a47ba17
4 changed files with 30 additions and 16 deletions

View File

@ -1071,6 +1071,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'validator': bool,
},
'PART_ENABLE_REVISION': {
'name': _('Part Revisions'),
'description': _('Enable revision field for Part'),
'validator': bool,
'default': True,
},
'PART_IPN_REGEX': {
'name': _('IPN Regex'),
'description': _('Regular expression pattern for matching Part IPN')