{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index c5202c3fa6..7cd4120f44 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -6,33 +6,54 @@
{% include "part/cat_link.html" with category=part.category %}
-
{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html
index 425c98b3f3..a4a76f55da 100644
--- a/InvenTree/part/templates/part/supplier.html
+++ b/InvenTree/part/templates/part/supplier.html
@@ -4,7 +4,6 @@
{% include 'part/tabs.html' with tab='suppliers' %}
-{% if part.supplier_parts.all|length > 0 %}
SKU
@@ -23,8 +22,11 @@
{% endfor %}
-{% else %}
-There are no suppliers defined for this part, sorry!
-{% endif %}
+
+
{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/tabs.html b/InvenTree/part/templates/part/tabs.html
index 1c244c40b2..64e5089f10 100644
--- a/InvenTree/part/templates/part/tabs.html
+++ b/InvenTree/part/templates/part/tabs.html
@@ -1,15 +1,25 @@
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/track.html b/InvenTree/part/templates/part/track.html
index 6ce8c8429e..01e174eef0 100644
--- a/InvenTree/part/templates/part/track.html
+++ b/InvenTree/part/templates/part/track.html
@@ -11,12 +11,18 @@ Part tracking for {{ part.name }}
Serial
Status
-{% for track in part.serials.all %}
+{% for track in part.tracked_parts.all %}
+
{% endblock %}
\ No newline at end of file
diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html
index 2b3f55ef19..df6bdb1f24 100644
--- a/InvenTree/part/templates/part/used_in.html
+++ b/InvenTree/part/templates/part/used_in.html
@@ -4,8 +4,6 @@
{% include 'part/tabs.html' with tab='used' %}
-This part is used to make the following parts:
-
Part
diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py
index 606b41db9f..fd124cf837 100644
--- a/InvenTree/stock/forms.py
+++ b/InvenTree/stock/forms.py
@@ -48,4 +48,5 @@ class EditStockItemForm(forms.ModelForm):
'supplier_part',
'location',
'quantity',
+ 'status'
]
\ No newline at end of file
diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py
index 32fca52124..3a86e3d835 100644
--- a/InvenTree/stock/models.py
+++ b/InvenTree/stock/models.py
@@ -34,8 +34,13 @@ def before_delete_stock_location(sender, instance, using, **kwargs):
# Update each part in the stock location
for item in instance.items.all():
- item.location = instance.parent
- item.save()
+ # If this location has a parent, move the child stock items to the parent
+ if instance.parent:
+ item.location = instance.parent
+ item.save()
+ # No parent location? Delete the stock items
+ else:
+ item.delete()
# Update each child category
for child in instance.children.all():
diff --git a/InvenTree/stock/templates/stock/index.html b/InvenTree/stock/templates/stock/index.html
index 230b37604e..9d89718bb1 100644
--- a/InvenTree/stock/templates/stock/index.html
+++ b/InvenTree/stock/templates/stock/index.html
@@ -12,4 +12,10 @@
{% include "stock/stock_table.html" with items=items %}
{% endif %}
+