mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Adds global setting to enable or disable webcam support for barcode scanning
This commit is contained in:
@ -842,6 +842,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
||||
'validator': bool,
|
||||
},
|
||||
|
||||
'BARCODE_WEBCAM_SUPPORT': {
|
||||
'name': _('Barcode Webcam Support'),
|
||||
'description': _('Allow barcode scanning via webcam in browser'),
|
||||
'default': True,
|
||||
'validator': bool,
|
||||
},
|
||||
|
||||
'PART_IPN_REGEX': {
|
||||
'name': _('IPN Regex'),
|
||||
'description': _('Regular expression pattern for matching Part IPN')
|
||||
|
Reference in New Issue
Block a user