Added low-stock part listing.

This commit is contained in:
Hannes Matuschek 2020-08-30 15:51:27 +02:00
parent 226fe2f4ba
commit 0dd95da8de
4 changed files with 47 additions and 1 deletions

View file

@ -245,6 +245,11 @@ class ToolsTreeBuilder
$this->urlGenerator->generate('parts_show_all')
);
$show_nodes[] = new TreeViewNode(
$this->translator->trans('tree.tools.show.low_stock_parts'),
$this->urlGenerator->generate('parts_show_low_stock')
);
if ($this->security->isGranted('read', new PartAttachment())) {
$show_nodes[] = new TreeViewNode(
$this->translator->trans('tree.tools.show.all_attachments'),