alerts: per-support-team webhook + printedparts routing

This commit is contained in:
2026-07-22 13:32:01 -04:00
parent e1c7af049c
commit 73b05e5b1c
9 changed files with 142 additions and 21 deletions

View File

@@ -139,6 +139,9 @@ class PrintedpartsPlugin(BasePlugin):
('printedparts_alert_roleids', '', 'string',
'Comma-separated role ids; every active member of these roles '
'receives low-stock alerts'),
('printedparts_alert_supportteamid', '', 'string',
'Support team whose webhook receives low-stock alerts; empty uses '
'the site alert_webhook_url'),
]
for key, value, valuetype, description in defaults:
if Setting.get(key) is None: