2
0
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:
Oliver
2018-04-14 16:26:26 +10:00
parent ce854e3119
commit 6a98846a8f
15 changed files with 169 additions and 11 deletions

View File

@ -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 %}

View File

@ -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'),