diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index a785e944bc..df8e3b2d37 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -202,13 +202,6 @@ class InvenTreeSetting(models.Model): 'validator': bool, }, - 'PART_ENABLE_MANUFACTURER_PARTS': { - 'name': _('Enable Manufacturer Parts'), - 'description': _('Enable the use of manufacturer parts for purchasing'), - 'default': False, - 'validator': bool, - }, - 'REPORT_DEBUG_MODE': { 'name': _('Debug Mode'), 'description': _('Generate reports in debug mode (HTML output)'), diff --git a/InvenTree/company/templates/company/detail_manufacturer_part.html b/InvenTree/company/templates/company/detail_manufacturer_part.html index 8499512b4c..902d456eaf 100644 --- a/InvenTree/company/templates/company/detail_manufacturer_part.html +++ b/InvenTree/company/templates/company/detail_manufacturer_part.html @@ -13,9 +13,7 @@ {% block details %} -{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %} -{% if manufacturer_parts.value == "True" %} {% if roles.purchase_order.change %}
@@ -50,16 +48,9 @@
-{% else %} -
- {% trans "Manufactured parts are disabled. Admin users can enable them in the global settings." %} -
-{% endif %} - {% endblock %} {% block js_ready %} {{ block.super }} -{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %} $("#manufacturer-part-create").click(function () { launchModalForm( diff --git a/InvenTree/company/templates/company/navbar.html b/InvenTree/company/templates/company/navbar.html index 3010eb47fe..9a3d3ee4c6 100644 --- a/InvenTree/company/templates/company/navbar.html +++ b/InvenTree/company/templates/company/navbar.html @@ -2,8 +2,6 @@ {% load static %} {% load inventree_extras %} -{% setting_object 'PART_ENABLE_MANUFACTURER_PARTS' as manufacturer_parts %} -