mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
Allow custom panel integration for more panel groups
This commit is contained in:
@ -539,7 +539,12 @@ export default function BuildDetail() {
|
|||||||
]}
|
]}
|
||||||
actions={buildActions}
|
actions={buildActions}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="build" panels={buildPanels} />
|
<PanelGroup
|
||||||
|
pageKey="build"
|
||||||
|
panels={buildPanels}
|
||||||
|
targetModel={ModelType.build}
|
||||||
|
targetId={build.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -331,7 +331,12 @@ export default function CompanyDetail(props: Readonly<CompanyDetailProps>) {
|
|||||||
breadcrumbs={props.breadcrumbs}
|
breadcrumbs={props.breadcrumbs}
|
||||||
badges={badges}
|
badges={badges}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="company" panels={companyPanels} />
|
<PanelGroup
|
||||||
|
pageKey="company"
|
||||||
|
panels={companyPanels}
|
||||||
|
targetModel={ModelType.company}
|
||||||
|
targetId={company.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -284,7 +284,12 @@ export default function ManufacturerPartDetail() {
|
|||||||
actions={manufacturerPartActions}
|
actions={manufacturerPartActions}
|
||||||
imageUrl={manufacturerPart?.part_detail?.thumbnail}
|
imageUrl={manufacturerPart?.part_detail?.thumbnail}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="manufacturerpart" panels={panels} />
|
<PanelGroup
|
||||||
|
pageKey="manufacturerpart"
|
||||||
|
panels={panels}
|
||||||
|
targetModel={ModelType.manufacturerpart}
|
||||||
|
targetId={manufacturerPart.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -376,7 +376,12 @@ export default function SupplierPartDetail() {
|
|||||||
actions={supplierPartActions}
|
actions={supplierPartActions}
|
||||||
imageUrl={supplierPart?.part_detail?.thumbnail}
|
imageUrl={supplierPart?.part_detail?.thumbnail}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="supplierpart" panels={panels} />
|
<PanelGroup
|
||||||
|
pageKey="supplierpart"
|
||||||
|
panels={panels}
|
||||||
|
targetModel={ModelType.supplierpart}
|
||||||
|
targetId={supplierPart.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -322,7 +322,12 @@ export default function CategoryDetail() {
|
|||||||
}}
|
}}
|
||||||
actions={categoryActions}
|
actions={categoryActions}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="partcategory" panels={categoryPanels} />
|
<PanelGroup
|
||||||
|
pageKey="partcategory"
|
||||||
|
panels={categoryPanels}
|
||||||
|
targetModel={ModelType.partcategory}
|
||||||
|
targetId={category.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -1095,7 +1095,12 @@ export default function PartDetail() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="part" panels={partPanels} />
|
<PanelGroup
|
||||||
|
pageKey="part"
|
||||||
|
panels={partPanels}
|
||||||
|
targetModel={ModelType.part}
|
||||||
|
targetId={part.pk}
|
||||||
|
/>
|
||||||
{transferStockItems.modal}
|
{transferStockItems.modal}
|
||||||
{countStockItems.modal}
|
{countStockItems.modal}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
@ -443,7 +443,12 @@ export default function PurchaseOrderDetail() {
|
|||||||
actions={poActions}
|
actions={poActions}
|
||||||
badges={orderBadges}
|
badges={orderBadges}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="purchaseorder" panels={orderPanels} />
|
<PanelGroup
|
||||||
|
pageKey="purchaseorder"
|
||||||
|
panels={orderPanels}
|
||||||
|
targetModel={ModelType.purchaseorder}
|
||||||
|
targetId={order.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -431,7 +431,12 @@ export default function ReturnOrderDetail() {
|
|||||||
actions={orderActions}
|
actions={orderActions}
|
||||||
breadcrumbs={[{ name: t`Sales`, url: '/sales/' }]}
|
breadcrumbs={[{ name: t`Sales`, url: '/sales/' }]}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="returnorder" panels={orderPanels} />
|
<PanelGroup
|
||||||
|
pageKey="returnorder"
|
||||||
|
panels={orderPanels}
|
||||||
|
targetModel={ModelType.returnorder}
|
||||||
|
targetId={order.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -483,7 +483,12 @@ export default function SalesOrderDetail() {
|
|||||||
actions={soActions}
|
actions={soActions}
|
||||||
breadcrumbs={[{ name: t`Sales`, url: '/sales/' }]}
|
breadcrumbs={[{ name: t`Sales`, url: '/sales/' }]}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="salesorder" panels={orderPanels} />
|
<PanelGroup
|
||||||
|
pageKey="salesorder"
|
||||||
|
panels={orderPanels}
|
||||||
|
targetModel={ModelType.salesorder}
|
||||||
|
targetId={order.pk}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</InstanceDetail>
|
</InstanceDetail>
|
||||||
</>
|
</>
|
||||||
|
@ -393,7 +393,12 @@ export default function Stock() {
|
|||||||
setTreeOpen(true);
|
setTreeOpen(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="stocklocation" panels={locationPanels} />
|
<PanelGroup
|
||||||
|
pageKey="stocklocation"
|
||||||
|
panels={locationPanels}
|
||||||
|
targetModel={ModelType.stocklocation}
|
||||||
|
targetId={location.pk}
|
||||||
|
/>
|
||||||
{transferStockItems.modal}
|
{transferStockItems.modal}
|
||||||
{countStockItems.modal}
|
{countStockItems.modal}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
@ -628,7 +628,12 @@ export default function StockDetail() {
|
|||||||
}}
|
}}
|
||||||
actions={stockActions}
|
actions={stockActions}
|
||||||
/>
|
/>
|
||||||
<PanelGroup pageKey="stockitem" panels={stockPanels} />
|
<PanelGroup
|
||||||
|
pageKey="stockitem"
|
||||||
|
panels={stockPanels}
|
||||||
|
targetModel={ModelType.stockitem}
|
||||||
|
targetId={stockitem.pk}
|
||||||
|
/>
|
||||||
{editStockItem.modal}
|
{editStockItem.modal}
|
||||||
{duplicateStockItem.modal}
|
{duplicateStockItem.modal}
|
||||||
{deleteStockItem.modal}
|
{deleteStockItem.modal}
|
||||||
|
Reference in New Issue
Block a user