From 8f02184c80bb16d56e56bb8378af88fe627085fe Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 9 Mar 2026 12:05:46 +0530 Subject: [PATCH] fix: validation for cancellation (cherry picked from commit 8de272a8a1c9295184febc773d028493d49f56ce) --- erpnext/stock/serial_batch_bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 7fc143e38d4..5cfdd776240 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -352,7 +352,7 @@ class SerialBatchBundle: "Serial and Batch Entry", {"parent": self.sle.serial_and_batch_bundle, "docstatus": 0} ) > 0 - ): + ) and not self.sle.is_cancelled: frappe.throw( _("Serial and Batch Bundle {0} is not submitted").format( bold(self.sle.serial_and_batch_bundle)