diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 10674250ffb..dd1f8d6210a 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -549,7 +549,7 @@ class StockController(AccountsController): batches = sorted( frappe.get_all( "Serial and Batch Entry", - filters={"parent": row.serial_and_batch_bundle, "batch_no": ("is", "set")}, + filters={"parent": row.serial_and_batch_bundle}, pluck="batch_no", distinct=True, )