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", {