mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-18 22:17:51 +00:00
Add configurable option for controlling default "delete_on_deplete" behaviour (#4106)
(cherry picked from commit aa7fa89b0c)
This commit is contained in:
1 parent
07e4f39dc7
commit
c31cc15fbf
4 files changed
+46
-1
No files matched your search
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user