mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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:
parent
b06b762895
commit
dd5aa5f4e4
@ -1,13 +1,16 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# 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."""
|
||||
|
||||
|
||||
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
|
||||
- Adds 'expiry_date' field to the PurchaseOrderReceive API endpoint
|
||||
- Adds 'default_expiry` field to the PartBriefSerializer, affecting API endpoints which use it
|
||||
|
@ -770,6 +770,7 @@ class PurchaseOrderLineItemReceiveSerializer(serializers.Serializer):
|
||||
label=_('Expiry Date'),
|
||||
help_text=_('Enter expiry date for incoming stock items'),
|
||||
required=False,
|
||||
allow_null=True,
|
||||
default=None,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user