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

Add configurable option for controlling default "delete_on_deplete" behaviour (#4106)

(cherry picked from commit aa7fa89b0c)
This commit is contained in:
Oliver
2022-12-25 07:13:53 +11:00
committed by GitHub
parent 07e4f39dc7
commit c31cc15fbf
4 changed files with 46 additions and 1 deletions

View File

@ -1228,6 +1228,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'),