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:
parent
5ba887d59b
commit
366c732668
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user