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

Add 'parameter' support for SalesOrderShipment model

This commit is contained in:
Oliver Walters
2026-03-31 00:41:56 +00:00
parent d5fdedff4a
commit 3489d13f02
2 changed files with 4 additions and 0 deletions

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