diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index c0b5c79679a..c4ec62e24cd 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -1247,7 +1247,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", {