mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-29 20:30:39 +00:00 
			
		
		
		
	Add ability to specify "source location" for stock allocations
- Defaults to build.take_from - User-selectable at run-time - Selected value affects select2 query
This commit is contained in:
		| @@ -821,7 +821,7 @@ class StockList(generics.ListCreateAPIView): | ||||
|         if loc_id is not None: | ||||
|  | ||||
|             # Filter by 'null' location (i.e. top-level items) | ||||
|             if isNull(loc_id): | ||||
|             if isNull(loc_id) and not cascade: | ||||
|                 queryset = queryset.filter(location=None) | ||||
|             else: | ||||
|                 try: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user