From 8de272a8a1c9295184febc773d028493d49f56ce 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 --- 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 84d45106adb..bea112facf9 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -350,7 +350,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)