diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 04fd93188a..e499e9b801 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -217,13 +217,6 @@ class InvenTreeSetting(models.Model): 'validator': bool, }, - 'PART_SHOW_GRAPH': { - 'name': _('Show Price History Graph'), - 'description': _('Display the price history graph in the part pricing view'), - 'default': False, - 'validator': bool, - }, - 'REPORT_DEBUG_MODE': { 'name': _('Debug Mode'), 'description': _('Generate reports in debug mode (HTML output)'), diff --git a/InvenTree/part/settings.py b/InvenTree/part/settings.py index 671b7bf8f6..e345a9d88d 100644 --- a/InvenTree/part/settings.py +++ b/InvenTree/part/settings.py @@ -62,11 +62,3 @@ def part_trackable_default(): """ return InvenTreeSetting.get_setting('PART_TRACKABLE') - - -def part_show_graph(): - """ - Returns if the part pricing graph should be shown - """ - - return InvenTreeSetting.get_setting('PART_SHOW_GRAPH') diff --git a/InvenTree/part/test_part.py b/InvenTree/part/test_part.py index 01e05f2710..cd8726ccf4 100644 --- a/InvenTree/part/test_part.py +++ b/InvenTree/part/test_part.py @@ -212,7 +212,6 @@ class PartSettingsTest(TestCase): self.assertFalse(part.settings.part_purchaseable_default()) self.assertFalse(part.settings.part_salable_default()) self.assertFalse(part.settings.part_trackable_default()) - self.assertFalse(part.settings.part_show_graph()) def test_initial(self): """ diff --git a/InvenTree/templates/InvenTree/settings/part.html b/InvenTree/templates/InvenTree/settings/part.html index 6c2aff7711..e359acdfc2 100644 --- a/InvenTree/templates/InvenTree/settings/part.html +++ b/InvenTree/templates/InvenTree/settings/part.html @@ -21,7 +21,6 @@ {% include "InvenTree/settings/setting.html" with key="PART_ALLOW_EDIT_IPN" %} {% include "InvenTree/settings/setting.html" with key="PART_SHOW_QUANTITY_IN_FORMS" icon="fa-hashtag" %} {% include "InvenTree/settings/setting.html" with key="PART_RECENT_COUNT" icon="fa-clock" %} - {% include "InvenTree/settings/setting.html" with key="PART_SHOW_GRAPH" icon="fa-chart-bar" %}