mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 17:42:32 +02:00
fix: check is_rejected attribute
(cherry picked from commit2ac2e02b2f) (cherry picked from commitbdf150bdf8)
This commit is contained in:
@@ -1227,7 +1227,7 @@ class SerialBatchCreation:
|
|||||||
def create_batch(self):
|
def create_batch(self):
|
||||||
from erpnext.stock.doctype.batch.batch import make_batch
|
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(
|
bundle = frappe.db.get_value(
|
||||||
"Serial and Batch Bundle",
|
"Serial and Batch Bundle",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user