2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

fix rendering of stock status

This commit is contained in:
Matthias Mair
2024-11-26 22:59:56 +01:00
parent 368f3b7bd4
commit da1f5188ec
2 changed files with 5 additions and 2 deletions

View File

@ -496,7 +496,10 @@ function StockOperationsRow({
<Table.Td>
<Group grow justify='space-between' wrap='nowrap'>
<Text>{stockString}</Text>
<StatusRenderer status={record.status} type={ModelType.stockitem} />
<StatusRenderer
status={record.status_custom_key}
type={ModelType.stockitem}
/>
</Group>
</Table.Td>
{!merge && (

View File

@ -131,7 +131,7 @@ export default function StockDetail() {
hidden: !part.IPN
},
{
name: 'status',
name: 'status_custom_key',
type: 'status',
label: t`Stock Status`,
model: ModelType.stockitem