fix: check is_rejected attribute

This commit is contained in:
Kavin
2025-10-06 17:49:28 +05:30
parent c0c2e2367c
commit 2ac2e02b2f

View File

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