mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Pass instance detail through
This commit is contained in:
parent
9891ec81b2
commit
90c497e38a
@ -542,6 +542,7 @@ export default function BuildDetail() {
|
||||
<PanelGroup
|
||||
pageKey="build"
|
||||
panels={buildPanels}
|
||||
targetInstance={build}
|
||||
targetModel={ModelType.build}
|
||||
targetId={build.pk}
|
||||
/>
|
||||
|
@ -334,6 +334,7 @@ export default function CompanyDetail(props: Readonly<CompanyDetailProps>) {
|
||||
<PanelGroup
|
||||
pageKey="company"
|
||||
panels={companyPanels}
|
||||
targetInstance={company}
|
||||
targetModel={ModelType.company}
|
||||
targetId={company.pk}
|
||||
/>
|
||||
|
@ -287,6 +287,7 @@ export default function ManufacturerPartDetail() {
|
||||
<PanelGroup
|
||||
pageKey="manufacturerpart"
|
||||
panels={panels}
|
||||
targetInstance={manufacturerPart}
|
||||
targetModel={ModelType.manufacturerpart}
|
||||
targetId={manufacturerPart.pk}
|
||||
/>
|
||||
|
@ -379,6 +379,7 @@ export default function SupplierPartDetail() {
|
||||
<PanelGroup
|
||||
pageKey="supplierpart"
|
||||
panels={panels}
|
||||
targetInstance={supplierPart}
|
||||
targetModel={ModelType.supplierpart}
|
||||
targetId={supplierPart.pk}
|
||||
/>
|
||||
|
@ -316,6 +316,7 @@ export default function CategoryDetail() {
|
||||
pageKey="partcategory"
|
||||
panels={panels}
|
||||
targetModel={ModelType.partcategory}
|
||||
targetInstance={category}
|
||||
targetId={category.pk}
|
||||
/>
|
||||
</Stack>
|
||||
|
@ -447,6 +447,7 @@ export default function PurchaseOrderDetail() {
|
||||
pageKey="purchaseorder"
|
||||
panels={orderPanels}
|
||||
targetModel={ModelType.purchaseorder}
|
||||
targetInstance={order}
|
||||
targetId={order.pk}
|
||||
/>
|
||||
</Stack>
|
||||
|
@ -435,6 +435,7 @@ export default function ReturnOrderDetail() {
|
||||
pageKey="returnorder"
|
||||
panels={orderPanels}
|
||||
targetModel={ModelType.returnorder}
|
||||
targetInstance={order}
|
||||
targetId={order.pk}
|
||||
/>
|
||||
</Stack>
|
||||
|
@ -488,6 +488,7 @@ export default function SalesOrderDetail() {
|
||||
panels={orderPanels}
|
||||
targetModel={ModelType.salesorder}
|
||||
targetId={order.pk}
|
||||
targetInstance={order}
|
||||
/>
|
||||
</Stack>
|
||||
</InstanceDetail>
|
||||
|
@ -398,6 +398,7 @@ export default function Stock() {
|
||||
panels={locationPanels}
|
||||
targetModel={ModelType.stocklocation}
|
||||
targetId={location.pk}
|
||||
targetInstance={location}
|
||||
/>
|
||||
{transferStockItems.modal}
|
||||
{countStockItems.modal}
|
||||
|
@ -633,6 +633,7 @@ export default function StockDetail() {
|
||||
panels={stockPanels}
|
||||
targetModel={ModelType.stockitem}
|
||||
targetId={stockitem.pk}
|
||||
targetInstance={stockitem}
|
||||
/>
|
||||
{editStockItem.modal}
|
||||
{duplicateStockItem.modal}
|
||||
|
Loading…
Reference in New Issue
Block a user