mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Add support for locating a stock item
This commit is contained in:
		| @@ -67,6 +67,18 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> { | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|     if (InvenTreeAPI().supportsMixin("locate")) { | ||||
|       actions.add( | ||||
|         IconButton( | ||||
|           icon: FaIcon(FontAwesomeIcons.searchLocation), | ||||
|           tooltip: L10().locateItem, | ||||
|           onPressed: () async { | ||||
|             InvenTreeAPI().locateItemOrLocation(context, item: item.pk); | ||||
|           }, | ||||
|         ) | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|     if (InvenTreeAPI().checkPermission("stock", "change")) { | ||||
|       actions.add( | ||||
|           IconButton( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user