2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

added setting -> default false

This commit is contained in:
2021-04-22 12:05:48 +02:00
parent c6b0bdf0fb
commit a0154067d2
6 changed files with 23 additions and 2 deletions

View File

@@ -1,8 +1,11 @@
{% extends "modal_form.html" %}
{% load i18n %}
{% load inventree_extras %}
{% block pre_form_content %}
{% settings_value "PART_SHOW_GRAPH" as show_graph %}
<div class='alert alert-info alert-block'>
{% blocktrans %}Pricing information for:<br>{{part}}.{% endblocktrans %}
</div>
@@ -77,7 +80,7 @@
</table>
{% endif %}
{% if price_history %}
{% if show_graph and price_history %}
<h4>{% trans 'Stock Pricing' %}</h4>
{% if price_history|length > 1 %}
<canvas id="priceChart"></canvas>