2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Add option to show part quantity in various forms

Enabling this option can make BOM item forms *very* slow!
This commit is contained in:
Oliver Walters
2021-01-14 15:20:42 +11:00
parent 8d6b4a2fd3
commit 1dc2636e45
4 changed files with 26 additions and 2 deletions

View File

@ -160,6 +160,13 @@ class InvenTreeSetting(models.Model):
'validator': bool,
},
'PART_SHOW_QUANTITY_IN_FORMS': {
'name': _('Show Quantity in Forms'),
'description': _('Display available part quantity in some forms'),
'default': True,
'validator': bool,
},
'STOCK_ENABLE_EXPIRY': {
'name': _('Stock Expiry'),
'description': _('Enable stock expiry functionality'),