From bdf150bdf8bd2df036b23b80190e1312b9bd0add Mon Sep 17 00:00:00 2001 From: Kavin <78342682+kavin0411@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:49:28 +0530 Subject: [PATCH] fix: check is_rejected attribute (cherry picked from commit 2ac2e02b2ff59a345c011dd0c654841274c250aa) --- 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 d4defccc452..8c9f47e0806 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -1227,7 +1227,7 @@ class SerialBatchCreation: def create_batch(self): from erpnext.stock.doctype.batch.batch import make_batch - if self.is_rejected: + if hasattr(self, "is_rejected") and self.is_rejected: bundle = frappe.db.get_value( "Serial and Batch Bundle", {