2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-05 19:10:54 +00:00

Shipment parameters (#11641)

* Add 'parameter' support for SalesOrderShipment model

* Add "parameters" tab for shipment view

* Playwright test

* Update CHANGELOG

* Update API version

* Install gettext

* Try yaml format

* Revert "Try yaml format"

This reverts commit 394a5551c8.

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2026-04-01 10:31:49 +11:00
committed by GitHub
parent 1f01229d30
commit 6243aec9b7
7 changed files with 16 additions and 2 deletions

View File

@@ -1,11 +1,14 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 468
INVENTREE_API_VERSION = 469
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v469 -> 2026-03-31 : https://github.com/inventree/InvenTree/pull/11641
- Adds parameter support to the SalesOrderShipment model and API endpoints
v468 -> 2026-03-31 : https://github.com/inventree/InvenTree/pull/11649
- Add ordering to contetype related fields - no functional changes

View File

@@ -2234,6 +2234,7 @@ class SalesOrderShipmentReportContext(report.mixins.BaseReportContext, TypedDict
class SalesOrderShipment(
InvenTree.models.InvenTreeParameterMixin,
InvenTree.models.InvenTreeAttachmentMixin,
InvenTree.models.InvenTreeBarcodeMixin,
InvenTree.models.InvenTreeNotesMixin,

View File

@@ -1320,6 +1320,7 @@ class SalesOrderShipmentSerializer(
'link',
'notes',
# Extra detail fields
'parameters',
'checked_by_detail',
'customer_detail',
'order_detail',
@@ -1375,6 +1376,8 @@ class SalesOrderShipmentSerializer(
prefetch_fields=['shipment_address'],
)
parameters = common.filters.enable_parameters_filter()
class SalesOrderAllocationSerializer(
FilterableSerializerMixin, InvenTreeModelSerializer