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

Configure number of "recent items" shown on index page

This commit is contained in:
Oliver Walters
2021-02-23 14:15:12 +11:00
parent 8972a51bd6
commit 8717be66fc
4 changed files with 11 additions and 2 deletions

View File

@ -256,6 +256,13 @@ class InvenTreeSetting(models.Model):
'validator': bool,
},
'STOCK_RECENT_COUNT': {
'name': _('Recent Stock Count'),
'description': _('Number of recent stock items to display on index page'),
'default': 10,
'validator': [int, MinValueValidator(1),]
},
'BUILDORDER_REFERENCE_PREFIX': {
'name': _('Build Order Reference Prefix'),
'description': _('Prefix value for build order reference'),