2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-22 01:06:50 +00:00

Prevent edit serial (#11964)

* Add new global setting

* Run serial number validation check

* Disable field in frontend

* Add unit test

* Docs tweak
This commit is contained in:
Oliver
2026-05-19 17:06:05 +10:00
committed by GitHub
parent cd5bd3c245
commit 9cac925e91
7 changed files with 127 additions and 76 deletions
+1
View File
@@ -209,6 +209,7 @@ Configuration of stock item options
| Name | Description | Default | Units |
| ---- | ----------- | ------- | ----- |
{{ globalsetting("SERIAL_NUMBER_GLOBALLY_UNIQUE") }}
{{ globalsetting("STOCK_ALLOW_EDIT_SERIAL") }}
{{ globalsetting("STOCK_ALLOW_DELETE_SERIALIZED") }}
{{ globalsetting("STOCK_DELETE_DEPLETED_DEFAULT") }}
{{ globalsetting("STOCK_BATCH_CODE_TEMPLATE") }}
+2
View File
@@ -142,6 +142,8 @@ Note that any serial number adjustments are subject to the same validation rules
{{ image("stock/serial_edit_error.png", title="Error while editing a serial number") }}
!!! info "Disable Serial Number Editing"
If you wish to prevent users from editing serial numbers, this can be achieved by disabling the `Allow Edit Serial Number` setting in the system settings view.
#### Plugin Support