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

Add some more part options which set the default values for the following fields:

- Purchaseable
- Salable
- Trackable
This commit is contained in:
Oliver Walters
2020-11-09 20:26:19 +11:00
parent 826c471179
commit 8149759852
2 changed files with 26 additions and 0 deletions

View File

@ -85,6 +85,27 @@ class InvenTreeSetting(models.Model):
'validator': bool
},
'PART_PURCHASEABLE': {
'name': _('Purchaseable'),
'description': _('Parts are purchaseable by default'),
'default': False,
'validator': bool,
},
'PART_SALABLE': {
'name': _('Salable'),
'description': _('Parts are salable by default'),
'default': False,
'validator': bool,
},
'PART_TRACKABLE': {
'name': _('Trackable'),
'description': _('Parts are trackable by default'),
'default': False,
'validator': bool,
},
'BUILDORDER_REFERENCE_PREFIX': {
'name': _('Build Order Reference Prefix'),
'description': _('Prefix value for build order reference'),