From e9538f6d64b829b828e4ec799470d17a4593f663 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Tue, 14 Oct 2025 23:37:45 +0530 Subject: [PATCH] fix(stock): remove filter from query --- erpnext/controllers/stock_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )