mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Revert status fields for stock items (#7965)
* Revert status fields for stock items * Fix PUI fields too * Bump API version
This commit is contained in:
parent
cf9dcf0556
commit
b9b44126de
@ -1,12 +1,15 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 247
|
||||
INVENTREE_API_VERSION = 248
|
||||
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
v248 - 2024-08-23 : https://github.com/inventree/InvenTree/pull/7965
|
||||
- Small adjustments to labels for new custom status fields
|
||||
|
||||
v247 - 2024-08-22 : https://github.com/inventree/InvenTree/pull/7956
|
||||
- Adjust "attachment" field on StockItemTestResult serializer
|
||||
- Allow null values for attachment
|
||||
|
@ -46,7 +46,7 @@ class Migration(migrations.Migration):
|
||||
models.CharField(
|
||||
help_text="Label that will be displayed in the frontend",
|
||||
max_length=250,
|
||||
verbose_name="label",
|
||||
verbose_name="Label",
|
||||
),
|
||||
),
|
||||
(
|
||||
|
@ -3355,7 +3355,7 @@ class InvenTreeCustomUserStateModel(models.Model):
|
||||
)
|
||||
label = models.CharField(
|
||||
max_length=250,
|
||||
verbose_name=_('label'),
|
||||
verbose_name=_('Label'),
|
||||
help_text=_('Label that will be displayed in the frontend'),
|
||||
)
|
||||
color = models.CharField(
|
||||
|
@ -380,7 +380,7 @@ function stockItemFields(options={}) {
|
||||
batch: {
|
||||
icon: 'fa-layer-group',
|
||||
},
|
||||
status_custom_key: {},
|
||||
status: {},
|
||||
expiry_date: {
|
||||
icon: 'fa-calendar-alt',
|
||||
},
|
||||
|
@ -138,7 +138,7 @@ export function useStockFields({
|
||||
value: batchCode,
|
||||
onValueChange: (value) => setBatchCode(value)
|
||||
},
|
||||
status_custom_key: {},
|
||||
status: {},
|
||||
expiry_date: {
|
||||
// TODO: icon
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user