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:
Oliver 2024-08-23 11:00:20 +10:00 committed by GitHub
parent cf9dcf0556
commit b9b44126de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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",
),
),
(

View File

@ -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(

View File

@ -380,7 +380,7 @@ function stockItemFields(options={}) {
batch: {
icon: 'fa-layer-group',
},
status_custom_key: {},
status: {},
expiry_date: {
icon: 'fa-calendar-alt',
},

View File

@ -138,7 +138,7 @@ export function useStockFields({
value: batchCode,
onValueChange: (value) => setBatchCode(value)
},
status_custom_key: {},
status: {},
expiry_date: {
// TODO: icon
},