Allow part lots to have an null storage location.

Otherwise we loose informations on migration.
This commit is contained in:
Jan Böhmer 2019-08-21 11:58:41 +02:00
parent c7e8fc9642
commit 016c2889ba
4 changed files with 16 additions and 8 deletions

View file

@ -14,7 +14,13 @@
<tr>
<td>{{ lot.description }}</td>
<td>
{{ lot.storageLocation.fullPath }}
{% if lot.storageLocation %}
{{ lot.storageLocation.fullPath }}
{% else %}
<span class="badge badge-pill badge-warning">
<i class="fas fa-question-circle fa-fw"></i> {% trans %}part_lots.location_unknown{% endtrans %}
</span>
{% endif %}
</td>
<td>
{% if lot.instockUnknown %}