From 06ad599e90a1e07ed284358d3d299f6e1d4dbaed Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Jun 2024 02:55:59 +0200 Subject: [PATCH] Remove the New Stock Item button from Stock view in case the user has no Stock write mermission (#7435) * Add location type to location overview * Remove the New Stock Item button from Stock view in case the user has not rights * Remove the New Stock Item button from Stock view in case the user has not rights --- src/backend/InvenTree/stock/templates/stock/location.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/InvenTree/stock/templates/stock/location.html b/src/backend/InvenTree/stock/templates/stock/location.html index 50483ab0a3..edd44c70f5 100644 --- a/src/backend/InvenTree/stock/templates/stock/location.html +++ b/src/backend/InvenTree/stock/templates/stock/location.html @@ -203,9 +203,11 @@

{% trans "Stock Items" %}

{% include "spacer.html" %}
+ {% if roles.stock.add and not part.virtual %} + {% endif %}