From 149c4df231a36de4788eebe3ec6d7e79d7cf3947 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 2 May 2023 14:46:54 +1000 Subject: [PATCH] Remove restriction on manual stock item installation (#4747) - Allow stock item to be manually inside an item which is iteself installed in an item - No practical reason for this limitation to exist --- InvenTree/stock/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 46cfb3f4a5..65406d3023 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -1171,10 +1171,6 @@ class StockItem(InvenTreeBarcodeMixin, InvenTreeNotesMixin, MetadataMixin, commo user: The user performing the operation notes: Any notes associated with the operation """ - # Cannot be already installed in another stock item! - if self.belongs_to is not None: - return False - # If the quantity is less than the stock item, split the stock! stock_item = other_item.splitStock(quantity, None, user)