remofing setting

This commit is contained in:
Matthias 2021-05-24 00:18:04 +02:00
parent 1da1753b23
commit b803fbae72
4 changed files with 0 additions and 17 deletions

View File

@ -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)'),

View File

@ -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')

View File

@ -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):
"""

View File

@ -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" %}
<tr><td colspan='5 '></td></tr>
{% include "InvenTree/settings/setting.html" with key="PART_TEMPLATE" icon="fa-clone" %}
{% include "InvenTree/settings/setting.html" with key="PART_ASSEMBLY" icon="fa-tools" %}