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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>