fix notify_low_stock context

This commit is contained in:
Matthias 2021-12-02 02:42:57 +01:00
parent f0ebc3fdbf
commit 2038c2250d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -20,7 +20,7 @@ def notify_low_stock(part: part.models.Part):
# Pass the "Part" object through to the template context
'part': part,
'link': InvenTree.helpers.construct_absolute_url(part.get_absolute_url()),
'templates': {
'template': {
'html': 'email/low_stock_notification.html',
'subject': "[InvenTree] " + _("Low stock notification"),
},