mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
fix rendering of stock status
This commit is contained in:
@ -496,7 +496,10 @@ function StockOperationsRow({
|
|||||||
<Table.Td>
|
<Table.Td>
|
||||||
<Group grow justify='space-between' wrap='nowrap'>
|
<Group grow justify='space-between' wrap='nowrap'>
|
||||||
<Text>{stockString}</Text>
|
<Text>{stockString}</Text>
|
||||||
<StatusRenderer status={record.status} type={ModelType.stockitem} />
|
<StatusRenderer
|
||||||
|
status={record.status_custom_key}
|
||||||
|
type={ModelType.stockitem}
|
||||||
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
</Table.Td>
|
</Table.Td>
|
||||||
{!merge && (
|
{!merge && (
|
||||||
|
@ -131,7 +131,7 @@ export default function StockDetail() {
|
|||||||
hidden: !part.IPN
|
hidden: !part.IPN
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'status',
|
name: 'status_custom_key',
|
||||||
type: 'status',
|
type: 'status',
|
||||||
label: t`Stock Status`,
|
label: t`Stock Status`,
|
||||||
model: ModelType.stockitem
|
model: ModelType.stockitem
|
||||||
|
Reference in New Issue
Block a user