[UI] Add barcode actions for ManufacturerPart (#13334)

This commit is contained in:
Oliver authored and GitHub committed 2026-11-20 21:05:36 +11:00
1 parent c78234218d
commit 9d7aeb4d3c
1 file changed
+8
@@ -15,6 +15,7 @@ import { getDetailUrl } from '@lib/functions/Navigation';
import type { PanelType } from '@lib/types/Panel';
import AdminButton from '../../components/buttons/AdminButton';
import {
BarcodeActionDropdown,
DeleteItemAction,
DuplicateItemAction,
EditItemAction,
@@ -141,6 +142,13 @@ export default function ManufacturerPartDetail() {
model={ModelType.manufacturerpart}
id={manufacturerPart.pk}
/>,
<BarcodeActionDropdown
key='barcode'
model={ModelType.manufacturerpart}
pk={manufacturerPart.pk}
hash={manufacturerPart.barcode_hash}
perm={user.hasChangeRole(UserRoles.purchase_order)}
/>,
<OptionsActionDropdown
key='options'
tooltip={t`Manufacturer Part Actions`}