From 318e84883a413274c3dc6dccd8f0998e8897fe40 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 1 Feb 2022 15:51:38 +1100 Subject: [PATCH] Adds a warning if no build outputs are created --- InvenTree/build/templates/build/build_base.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index ae6ea6d4d3..7340f1486d 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -90,6 +90,11 @@ src="{% static 'img/blank_image.png' %}"
+ {% if not build.has_build_outputs %} +
+ {% trans "No build outputs have been created for this build order" %}
+
+ {% endif %} {% if build.sales_order %}
{% object_link 'so-detail' build.sales_order.id build.sales_order as link %}