From 92a4989a8d4e945367abb4e362a12b3c47c913ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 13:44:32 +1000 Subject: [PATCH] Fix for email template (#7249) (#7251) - Use `line.part` instead of `part` (cherry picked from commit 2431fc6d582978dc28c7caf23d65f2cc7af8162f) Co-authored-by: Oliver --- .../InvenTree/templates/email/build_order_required_stock.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/templates/email/build_order_required_stock.html b/src/backend/InvenTree/templates/email/build_order_required_stock.html index aba84be41a..d586575d9a 100644 --- a/src/backend/InvenTree/templates/email/build_order_required_stock.html +++ b/src/backend/InvenTree/templates/email/build_order_required_stock.html @@ -22,7 +22,7 @@ {% for line in lines %} - {{ line.part.full_name }}{% if part.description %} - {{ part.description }}{% endif %} + {{ line.part.full_name }}{% if line.part.description %} - {{ line.part.description }}{% endif %} {% decimal line.required %} {% include "part/part_units.html" with part=line.part %}