2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 12:10:59 +00:00

Add configurable option for controlling default "delete_on_deplete" behaviour

This commit is contained in:
Oliver Walters
2022-12-24 23:42:58 +11:00
parent 3bf5492cb6
commit aa7fa89b0c
4 changed files with 46 additions and 1 deletions

View File

@ -1222,6 +1222,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'validator': bool,
},
'STOCK_DELETE_DEPLETED_DEFAULT': {
'name': _('Delete Depleted Stock'),
'description': _('Determines default behaviour when a stock item is depleted'),
'default': True,
'validator': bool,
},
'STOCK_BATCH_CODE_TEMPLATE': {
'name': _('Batch Code Template'),
'description': _('Template for generating default batch codes for stock items'),