mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
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:
@@ -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",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user