2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

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
This commit is contained in:
Michael
2024-06-13 02:55:59 +02:00
committed by GitHub
parent 4631c88a87
commit 06ad599e90

View File

@ -203,9 +203,11 @@
<h4>{% trans "Stock Items" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% if roles.stock.add and not part.virtual %}
<button type='button' class='btn btn-success' id='item-create' title='{% trans "Create new stock item" %}'>
<span class='fas fa-plus-circle'></span> {% trans "New Stock Item" %}
</button>
{% endif %}
</div>
</div>
</div>