2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

[PUI] Test result fixes (#7956)

* Prevent template adjustment

* Prevent template from being edited

* Fix 'attachment' field for StockItemTestResultSerializer

- Allow 'null' value

* Bump API version
This commit is contained in:
Oliver
2024-08-22 13:50:04 +10:00
committed by GitHub
parent b0c7a1aed5
commit ca87df3c3d
5 changed files with 31 additions and 10 deletions

View File

@ -1,12 +1,15 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 246
INVENTREE_API_VERSION = 247
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v247 - 2024-08-22 : https://github.com/inventree/InvenTree/pull/7956
- Adjust "attachment" field on StockItemTestResult serializer
- Allow null values for attachment
v246 - 2024-08-21 : https://github.com/inventree/InvenTree/pull/7862
- Adds custom status fields to various serializers

View File

@ -239,7 +239,10 @@ class StockItemTestResultSerializer(
)
attachment = InvenTree.serializers.InvenTreeAttachmentSerializerField(
required=False
required=False,
allow_null=True,
label=_('Attachment'),
help_text=_('Test result attachment'),
)
def validate(self, data):