mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add support for locating a stock item
This commit is contained in:
parent
5ba887d59b
commit
366c732668
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue