Vastly improved speed of BOM upload

- Was calculating the stock levels for *every* part, for *every* drop down
- Many many many calls were being made
- Just remove stock count entirely from the drop-down menus
This commit is contained in:
Oliver Walters 2020-11-27 14:40:30 +11:00
parent a5e6ac2300
commit ea2f5009c8
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
{% endfor %}
</select>
{% if col.duplicate %}
<p class='help-inline'>Duplicate column selection</p>
<p class='help-inline'>{% trans "Duplicate column selection" %}</p>
{% endif %}
</td>
{% endfor %}

View File

@ -63,7 +63,7 @@
<option value=''>--- {% trans "Select Part" %} ---</option>
{% for part in row.part_options %}
<option value='{{ part.id }}' {% if part.id == row.part.id %} selected='selected' {% elif part.id == row.part_match.id %} selected='selected' {% endif %}>
{{ part }} - {{ part.available_stock }}
{{ part }}
</option>
{% endfor %}
</select>