From 1743111613f1f1bf14ef03470c34f4771eff3753 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 5 Nov 2021 11:03:38 +1100 Subject: [PATCH] Check if customer exists when rendering sales order template Fixes https://github.com/inventree/InvenTree/issues/1742 --- InvenTree/order/templates/order/sales_order_base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/order/templates/order/sales_order_base.html b/InvenTree/order/templates/order/sales_order_base.html index 952319da10..0f705212db 100644 --- a/InvenTree/order/templates/order/sales_order_base.html +++ b/InvenTree/order/templates/order/sales_order_base.html @@ -16,7 +16,7 @@ {% block thumbnail %} + {% if order.customer %} {% trans "Customer" %} {{ order.customer.name }}{% include "clip.html"%} + {% endif %} {% if order.customer_reference %}