mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Set the parent relationship when serializing StockItem object
- Keep track of which StockItem is came from
This commit is contained in:
		| @@ -487,6 +487,7 @@ class StockItem(MPTTModel): | ||||
|             new_item.quantity = 1 | ||||
|             new_item.serial = serial | ||||
|             new_item.pk = None | ||||
|             new_item.parent = self | ||||
|  | ||||
|             if location: | ||||
|                 new_item.location = location | ||||
|   | ||||
		Reference in New Issue
	
	Block a user