Merge pull request #49913 from aerele/support-50177

fix: check is_rejected attribute
This commit is contained in:
rohitwaghchaure
2025-10-06 19:37:37 +05:30
committed by GitHub

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