diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index ed86a807e1..7d9520a544 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -634,6 +634,7 @@ class StockItem(MPTTModel): self.customer = None self.location = location + self.sales_order = None self.save() diff --git a/InvenTree/stock/templates/stock/item_childs.html b/InvenTree/stock/templates/stock/item_childs.html index eaa6eef1e3..f5d80e5ad1 100644 --- a/InvenTree/stock/templates/stock/item_childs.html +++ b/InvenTree/stock/templates/stock/item_childs.html @@ -30,7 +30,7 @@ loadStockTable($("#stock-table"), { params: { location_detail: true, - part_details: true, + part_detail: false, ancestor: {{ item.id }}, }, name: 'item-childs',