2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +00:00

Merge pull request #1469 from eeintech/stock_item_template_fix

Fixed stock item template for items without manufacturer part
This commit is contained in:
Oliver
2021-04-17 08:05:21 +10:00
committed by GitHub

View File

@ -331,7 +331,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<td><a href="{{ item.link }}">{{ item.link }}</a></td>
</tr>
{% endif %}
{% if item.supplier_part %}
{% if item.supplier_part.manufacturer_part %}
<tr>
<td><span class='fas fa-industry'></span></td>
<td>{% trans "Manufacturer" %}</td>
@ -342,6 +342,8 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<td>{% trans "Manufacturer Part" %}</td>
<td><a href="{% url 'manufacturer-part-detail' item.supplier_part.manufacturer_part.id %}">{{ item.supplier_part.manufacturer_part.MPN }}</a></td>
</tr>
{% endif %}
{% if item.supplier_part %}
<tr>
<td><span class='fas fa-building'></span></td>
<td>{% trans "Supplier" %}</td>