From ee5722857ff745918365ddeb3c399b73a67de3f6 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 18 Jun 2019 22:13:54 +1000 Subject: [PATCH] Re-add 'new stock item' button --- InvenTree/part/templates/part/detail.html | 2 +- InvenTree/templates/stock_table.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index e164848ff7..fe07954a5a 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -142,7 +142,7 @@ Purchaseable {% include "slide.html" with state=part.purchaseable field='purchaseable' %} {% if part.purchaseable %} - + Part can be purchased from external suppliers {% else %} Part can be purchased from external suppliers {% endif %} diff --git a/InvenTree/templates/stock_table.html b/InvenTree/templates/stock_table.html index aa07f99959..e53daa4718 100644 --- a/InvenTree/templates/stock_table.html +++ b/InvenTree/templates/stock_table.html @@ -1,6 +1,6 @@
- {% if part.is_template == False %} + {% if not part or part.is_template == False %} {% endif %}