Edit packaging field

This commit is contained in:
Oliver Walters 2021-02-19 11:11:22 +11:00
parent 644583f636
commit e8bacbe45f
2 changed files with 9 additions and 0 deletions

View File

@ -134,6 +134,7 @@ class CreateStockItemForm(HelperForm):
'quantity',
'batch',
'serial_numbers',
'packaging',
'purchase_price',
'expiry_date',
'link',
@ -414,6 +415,7 @@ class EditStockItemForm(HelperForm):
'status',
'expiry_date',
'purchase_price',
'packaging',
'link',
'delete_on_deplete',
'owner',

View File

@ -283,6 +283,13 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<td>{{ item.batch }}</td>
</tr>
{% endif %}
{% if item.packaging %}
<tr>
<td><span class='fas fa-cube'></span></td>
<td>{% trans "Packaging" %}</td>
<td>{{ item.packaging }}</td>
</tr>
{% endif %}
{% if item.build %}
<tr>
<td><span class='fas fa-tools'></span></td>