From 9d5a493609ed6c4e2741b393b2bdede64b1d06f6 Mon Sep 17 00:00:00 2001 From: Pandiyan5273 Date: Wed, 7 Jan 2026 19:27:16 +0530 Subject: [PATCH] fix(stock): enable allow on submit for tracking status field (cherry picked from commit 1bfb62465f847afcbe902ca334756502a3018050) --- erpnext/stock/doctype/shipment/shipment.json | 3 ++- erpnext/stock/doctype/shipment/shipment.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/doctype/shipment/shipment.json b/erpnext/stock/doctype/shipment/shipment.json index 8b6e70ac65b..91648a2060a 100644 --- a/erpnext/stock/doctype/shipment/shipment.json +++ b/erpnext/stock/doctype/shipment/shipment.json @@ -382,6 +382,7 @@ "print_hide": 1 }, { + "allow_on_submit": 1, "fieldname": "tracking_status", "fieldtype": "Select", "label": "Tracking Status", @@ -440,7 +441,7 @@ ], "is_submittable": 1, "links": [], - "modified": "2025-02-20 16:55:20.076418", + "modified": "2026-01-07 19:24:23.566312", "modified_by": "Administrator", "module": "Stock", "name": "Shipment", diff --git a/erpnext/stock/doctype/shipment/shipment.py b/erpnext/stock/doctype/shipment/shipment.py index cf9d165fdd3..880f6b5e1c1 100644 --- a/erpnext/stock/doctype/shipment/shipment.py +++ b/erpnext/stock/doctype/shipment/shipment.py @@ -20,9 +20,7 @@ class Shipment(Document): if TYPE_CHECKING: from frappe.types import DF - from erpnext.stock.doctype.shipment_delivery_note.shipment_delivery_note import ( - ShipmentDeliveryNote, - ) + from erpnext.stock.doctype.shipment_delivery_note.shipment_delivery_note import ShipmentDeliveryNote from erpnext.stock.doctype.shipment_parcel.shipment_parcel import ShipmentParcel amended_from: DF.Link | None