mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remofing setting
This commit is contained in:
parent
1da1753b23
commit
b803fbae72
@ -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)'),
|
||||
|
@ -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')
|
||||
|
@ -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):
|
||||
"""
|
||||
|
@ -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" %}
|
||||
|
Loading…
Reference in New Issue
Block a user