From 522ca161d6e60a769ca7313203c082e173618f4d Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 23 Jun 2021 01:26:07 +0200 Subject: [PATCH] added permissions-check to bom --- InvenTree/part/templates/part/prices.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/prices.html b/InvenTree/part/templates/part/prices.html index e71179284a..1789b6ddff 100644 --- a/InvenTree/part/templates/part/prices.html +++ b/InvenTree/part/templates/part/prices.html @@ -140,7 +140,6 @@ -

{% trans "Purchase Price" %}

@@ -183,6 +182,7 @@ {% endif %} +{% if part.has_bom and roles.sales_order.view %}

{% trans "BOM Cost" %}

@@ -204,6 +204,8 @@ {% endif %}
+{% endif %} + {% if part.salable and roles.sales_order.view %}