mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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:
parent
4631c88a87
commit
06ad599e90
@ -203,9 +203,11 @@
|
|||||||
<h4>{% trans "Stock Items" %}</h4>
|
<h4>{% trans "Stock Items" %}</h4>
|
||||||
{% include "spacer.html" %}
|
{% include "spacer.html" %}
|
||||||
<div class='btn-group' role='group'>
|
<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" %}'>
|
<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" %}
|
<span class='fas fa-plus-circle'></span> {% trans "New Stock Item" %}
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user