diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 3970963005e3923f6961d0c1b647fdabe9a881b9..0c44ae775e8a06b041e39760c5453e78591e40a7 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -557,7 +557,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, )