2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

[PUI] Fix stock item state rendering (#8572)

* fix rendering of stock status

* update api to support custom status

* Revert "update api to support custom status"

This reverts commit e7ff5aa3984d6824d7cb29586aa22312cd8a76c6.
This commit is contained in:
Matthias Mair 2024-11-28 21:48:19 +01:00 committed by GitHub
parent db128f9322
commit 7478a2853a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -531,7 +531,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

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