2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Optional error notification (#5506)

* Add user setting for receiving error notifications

* Ignore uses who don't want error notifications

* Add config to settings page
This commit is contained in:
Oliver
2023-09-05 15:23:14 +10:00
committed by GitHub
parent 2243f288ee
commit f917c91522
3 changed files with 25 additions and 7 deletions

View File

@ -2191,6 +2191,13 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
'default': '',
},
'NOTIFICATION_ERROR_REPORT': {
'name': _('Receive error reports'),
'description': _('Receive notifications for system errors'),
'default': True,
'validator': bool,
}
}
typ = 'user'