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

Updated Part model

- Added 'default_location'
- Added 'default_supplier'
This commit is contained in:
Oliver
2018-04-17 18:23:24 +10:00
parent 45c5edee4d
commit 982803a0a7
6 changed files with 80 additions and 1 deletions

View File

@@ -23,6 +23,18 @@
{% endif %}
</td>
</tr>
{% if part.default_location %}
<tr>
<td>Default Location</td>
<td>{{ part.default_location.pathstring }}</td>
</tr>
{% endif %}
{% if part.default_supplier %}
<tr>
<td>Default Supplier</td>
<td>{{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}</td>
</tr>
{% endif %}
<tr>
<td>Units</td>
<td>{{ part.units }}</td>