From 0d1919f10b137e2cd46b5f8e432b5b834bfde2fa Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 21 Apr 2020 16:59:14 +1000 Subject: [PATCH] Display an alert on a stock item page if that stock item is allocated to a salesorder --- InvenTree/stock/templates/stock/item_base.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 9785b78850..f339258d0f 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -5,6 +5,12 @@ {% load i18n %} {% block content %} +{% if item.sales_order %} +
+ {% trans "This stock item is allocated to " %} + {{ item.sales_order.order }} +
+{% endif %}