mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add optional link to CUI detail pages (#6129)
to make transition easier linking to these should also be enabled
This commit is contained in:
parent
fbc12fb496
commit
4f4852e2e7
@ -9,6 +9,7 @@ interface ModelInformationInterface {
|
|||||||
url_overview?: string;
|
url_overview?: string;
|
||||||
url_detail?: string;
|
url_detail?: string;
|
||||||
api_endpoint?: ApiPaths;
|
api_endpoint?: ApiPaths;
|
||||||
|
cui_detail?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type ModelDictory = {
|
type ModelDictory = {
|
||||||
@ -21,6 +22,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Parts`,
|
label_multiple: t`Parts`,
|
||||||
url_overview: '/part',
|
url_overview: '/part',
|
||||||
url_detail: '/part/:pk/',
|
url_detail: '/part/:pk/',
|
||||||
|
cui_detail: '/part/:pk/',
|
||||||
api_endpoint: ApiPaths.part_list
|
api_endpoint: ApiPaths.part_list
|
||||||
},
|
},
|
||||||
partparametertemplate: {
|
partparametertemplate: {
|
||||||
@ -35,6 +37,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Supplier Parts`,
|
label_multiple: t`Supplier Parts`,
|
||||||
url_overview: '/supplierpart',
|
url_overview: '/supplierpart',
|
||||||
url_detail: '/supplierpart/:pk/',
|
url_detail: '/supplierpart/:pk/',
|
||||||
|
cui_detail: '/supplier-part/:pk/',
|
||||||
api_endpoint: ApiPaths.supplier_part_list
|
api_endpoint: ApiPaths.supplier_part_list
|
||||||
},
|
},
|
||||||
manufacturerpart: {
|
manufacturerpart: {
|
||||||
@ -42,6 +45,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Manufacturer Parts`,
|
label_multiple: t`Manufacturer Parts`,
|
||||||
url_overview: '/manufacturerpart',
|
url_overview: '/manufacturerpart',
|
||||||
url_detail: '/manufacturerpart/:pk/',
|
url_detail: '/manufacturerpart/:pk/',
|
||||||
|
cui_detail: '/manufacturer-part/:pk/',
|
||||||
api_endpoint: ApiPaths.manufacturer_part_list
|
api_endpoint: ApiPaths.manufacturer_part_list
|
||||||
},
|
},
|
||||||
partcategory: {
|
partcategory: {
|
||||||
@ -49,6 +53,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Part Categories`,
|
label_multiple: t`Part Categories`,
|
||||||
url_overview: '/partcategory',
|
url_overview: '/partcategory',
|
||||||
url_detail: '/partcategory/:pk/',
|
url_detail: '/partcategory/:pk/',
|
||||||
|
cui_detail: '/part/category/:pk/',
|
||||||
api_endpoint: ApiPaths.category_list
|
api_endpoint: ApiPaths.category_list
|
||||||
},
|
},
|
||||||
stockitem: {
|
stockitem: {
|
||||||
@ -56,6 +61,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Stock Items`,
|
label_multiple: t`Stock Items`,
|
||||||
url_overview: '/stock/item',
|
url_overview: '/stock/item',
|
||||||
url_detail: '/stock/item/:pk/',
|
url_detail: '/stock/item/:pk/',
|
||||||
|
cui_detail: '/stock/item/:pk/',
|
||||||
api_endpoint: ApiPaths.stock_item_list
|
api_endpoint: ApiPaths.stock_item_list
|
||||||
},
|
},
|
||||||
stocklocation: {
|
stocklocation: {
|
||||||
@ -63,6 +69,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Stock Locations`,
|
label_multiple: t`Stock Locations`,
|
||||||
url_overview: '/stock/location',
|
url_overview: '/stock/location',
|
||||||
url_detail: '/stock/location/:pk/',
|
url_detail: '/stock/location/:pk/',
|
||||||
|
cui_detail: '/stock/location/:pk/',
|
||||||
api_endpoint: ApiPaths.stock_location_list
|
api_endpoint: ApiPaths.stock_location_list
|
||||||
},
|
},
|
||||||
stockhistory: {
|
stockhistory: {
|
||||||
@ -75,6 +82,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Builds`,
|
label_multiple: t`Builds`,
|
||||||
url_overview: '/build',
|
url_overview: '/build',
|
||||||
url_detail: '/build/:pk/',
|
url_detail: '/build/:pk/',
|
||||||
|
cui_detail: '/build/:pk/',
|
||||||
api_endpoint: ApiPaths.build_order_list
|
api_endpoint: ApiPaths.build_order_list
|
||||||
},
|
},
|
||||||
company: {
|
company: {
|
||||||
@ -82,6 +90,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Companies`,
|
label_multiple: t`Companies`,
|
||||||
url_overview: '/company',
|
url_overview: '/company',
|
||||||
url_detail: '/company/:pk/',
|
url_detail: '/company/:pk/',
|
||||||
|
cui_detail: '/company/:pk/',
|
||||||
api_endpoint: ApiPaths.company_list
|
api_endpoint: ApiPaths.company_list
|
||||||
},
|
},
|
||||||
projectcode: {
|
projectcode: {
|
||||||
@ -96,6 +105,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Purchase Orders`,
|
label_multiple: t`Purchase Orders`,
|
||||||
url_overview: '/purchasing/purchase-order',
|
url_overview: '/purchasing/purchase-order',
|
||||||
url_detail: '/purchasing/purchase-order/:pk/',
|
url_detail: '/purchasing/purchase-order/:pk/',
|
||||||
|
cui_detail: '/order/purchase-order/:pk/',
|
||||||
api_endpoint: ApiPaths.purchase_order_list
|
api_endpoint: ApiPaths.purchase_order_list
|
||||||
},
|
},
|
||||||
purchaseorderline: {
|
purchaseorderline: {
|
||||||
@ -108,6 +118,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Sales Orders`,
|
label_multiple: t`Sales Orders`,
|
||||||
url_overview: '/sales/sales-order',
|
url_overview: '/sales/sales-order',
|
||||||
url_detail: '/sales/sales-order/:pk/',
|
url_detail: '/sales/sales-order/:pk/',
|
||||||
|
cui_detail: '/order/sales-order/:pk/',
|
||||||
api_endpoint: ApiPaths.sales_order_list
|
api_endpoint: ApiPaths.sales_order_list
|
||||||
},
|
},
|
||||||
salesordershipment: {
|
salesordershipment: {
|
||||||
@ -122,6 +133,7 @@ export const ModelInformationDict: ModelDictory = {
|
|||||||
label_multiple: t`Return Orders`,
|
label_multiple: t`Return Orders`,
|
||||||
url_overview: '/sales/return-order',
|
url_overview: '/sales/return-order',
|
||||||
url_detail: '/sales/return-order/:pk/',
|
url_detail: '/sales/return-order/:pk/',
|
||||||
|
cui_detail: '/order/return-order/:pk/',
|
||||||
api_endpoint: ApiPaths.return_order_list
|
api_endpoint: ApiPaths.return_order_list
|
||||||
},
|
},
|
||||||
address: {
|
address: {
|
||||||
|
Loading…
Reference in New Issue
Block a user