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

Generate a list of allowed BOM items and pass to the form template

This commit is contained in:
Oliver Walters
2019-07-07 11:22:01 +10:00
parent 3930651c59
commit bd30ac037b
3 changed files with 24 additions and 0 deletions

View File

@@ -49,6 +49,9 @@
{% if item.column.guess == 'Part' %}
<select class='select' id='id_part_{{ row.index }}' name='part_select_{{ row.index }}'>
<option value=''>---------</option>
{% for part in allowed_parts_list %}
<option value='{{ part.id }}'>{{ part.full_name }} - {{ part.description }}</option>
{% endfor %}
</select>
<br>
{{ item.cell }}