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

Allow null value for expiry_date field (#8886)

* Allow null value for expiry_date field

* Bump API version
This commit is contained in:
Oliver 2025-01-13 14:31:03 +11:00 committed by GitHub
parent b06b762895
commit dd5aa5f4e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,13 +1,16 @@
"""InvenTree API version information.""" """InvenTree API version information."""
# InvenTree API version # InvenTree API version
INVENTREE_API_VERSION = 299 INVENTREE_API_VERSION = 300
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" """Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """ INVENTREE_API_TEXT = """
v300 - 2025-01-13 - https://github.com/inventree/InvenTree/pull/8886
- Allow null value for 'expiry_date' field introduced in #8867
v299 - 2025-01-10 - https://github.com/inventree/InvenTree/pull/8867 v299 - 2025-01-10 - https://github.com/inventree/InvenTree/pull/8867
- Adds 'expiry_date' field to the PurchaseOrderReceive API endpoint - Adds 'expiry_date' field to the PurchaseOrderReceive API endpoint
- Adds 'default_expiry` field to the PartBriefSerializer, affecting API endpoints which use it - Adds 'default_expiry` field to the PartBriefSerializer, affecting API endpoints which use it

View File

@ -770,6 +770,7 @@ class PurchaseOrderLineItemReceiveSerializer(serializers.Serializer):
label=_('Expiry Date'), label=_('Expiry Date'),
help_text=_('Enter expiry date for incoming stock items'), help_text=_('Enter expiry date for incoming stock items'),
required=False, required=False,
allow_null=True,
default=None, default=None,
) )