Merge pull request #49918 from frappe/mergify/bp/version-15-hotfix/pr-49913

fix: check is_rejected attribute (backport #49913)
This commit is contained in:
rohitwaghchaure
2025-10-06 19:54:59 +05:30
committed by GitHub

View File

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