2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-04 08:18:54 +00:00

Add support for locating a stock item

This commit is contained in:
Oliver Walters 2022-05-10 00:30:28 +10:00
parent 5ba887d59b
commit 366c732668

View File

@ -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")) { if (InvenTreeAPI().checkPermission("stock", "change")) {
actions.add( actions.add(
IconButton( IconButton(