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

Added global setting to enable manufacturer parts

Created SourceItem model
Updated templates
This commit is contained in:
eeintech
2021-03-29 13:22:15 -04:00
parent cbb887ae79
commit e6dfb7da52
8 changed files with 89 additions and 14 deletions

View File

@ -68,13 +68,16 @@
</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-building'></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-warehouse'></span>