From 2038c2250dc57aa9961f238cab17abf92e144ddb Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 02:42:57 +0100 Subject: [PATCH] fix notify_low_stock context --- InvenTree/part/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/tasks.py b/InvenTree/part/tasks.py index 111cd2eb3b..2f6b58afa9 100644 --- a/InvenTree/part/tasks.py +++ b/InvenTree/part/tasks.py @@ -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"), },