2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Removed global setting for manufacturer parts (enabled for all users)

This commit is contained in:
eeintech
2021-04-06 08:49:45 -04:00
parent fd66e8b136
commit bd65a42410
7 changed files with 2 additions and 34 deletions

View File

@ -12,9 +12,7 @@
{% endblock %}
{% block details %}
{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %}
{% if manufacturer_parts.value == "True" %}
<div id='button-toolbar'>
<div class='btn-group'>
<button class="btn btn-success" id='manufacturer-create'>
@ -31,11 +29,6 @@
<table class="table table-striped table-condensed" id='manufacturer-table' data-toolbar='#button-toolbar'>
</table>
{% else %}
<div class='alert alert-block alert-warning'>
{% trans "Manufactured parts are disabled. Admin users can enable them in the global settings." %}
</div>
{% endif %}
{% endblock %}

View File

@ -68,16 +68,13 @@
</a>
</li>
{% endif %}
{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %}
{% if part.purchaseable and roles.purchase_order.view %}
{% if manufacturer_parts.value == "True" %}
<li class='list-group-item {% if tab == "manufacturers" %}active{% endif %}' title='{% trans "Manufacturers" %}'>
<a href='{% url "part-manufacturers" part.id %}'>
<span class='menu-tab-icon fas fa-industry'></span>
{% trans "Manufacturers" %}
</a>
</li>
{% endif %}
<li class='list-group-item {% if tab == "suppliers" %}active{% endif %}' title='{% trans "Suppliers" %}'>
<a href='{% url "part-suppliers" part.id %}'>
<span class='menu-tab-icon fas fa-building'></span>