mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 03:55:41 +00:00
Added supplier web interface
- Display list of suppliers - Supplier detail page - Supplier part detail page - Part detail now includes list of supplier parts
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<ul>
|
||||
<li>Part: <a href="{% url 'part-detail' item.part.id %}">{{ item.part.name }}</a></li>
|
||||
{% if item.supplier_part %}
|
||||
<li>Supplier Part: {{ item.supplier_part.supplier.name }} | {{ item.supplier_part.SKU }}</li>
|
||||
<li>Supplier Part: <a href="{% url 'supplier-part-detail' item.supplier_part.id %}">{{ item.supplier_part.supplier.name }} | {{ item.supplier_part.SKU }}</a></li>
|
||||
{% endif %}
|
||||
<li>Quantity: {{ item.quantity }}</li>
|
||||
{% if item.stocktake_date %}
|
||||
|
@ -38,7 +38,7 @@ stock_urls = [
|
||||
# Individual stock items
|
||||
url(r'^(?P<pk>\d+)/', include(stock_detail_urls)),
|
||||
|
||||
url('list', views.index, name='stock=index'),
|
||||
url('list', views.index, name='stock-index'),
|
||||
|
||||
# Redirect any other patterns
|
||||
url(r'^.*$', RedirectView.as_view(url='list', permanent=False), name='stock-index'),
|
||||
|
Reference in New Issue
Block a user