From dbc62276d6aa95e1775fe8c7764f63a2894e6af7 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 10 Jun 2026 21:38:27 +0530 Subject: [PATCH] refactor: drop redundant disabled filter on child query `parent_items` already comes from the disabled-filtered parent query, and on v16 an item has at most one bundle, so the child query cannot reach a disabled bundle. Co-Authored-By: Claude Fable 5 --- .../report/product_bundle_balance/product_bundle_balance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/report/product_bundle_balance/product_bundle_balance.py b/erpnext/stock/report/product_bundle_balance/product_bundle_balance.py index c7ba791dfea..34be8fc6a7f 100644 --- a/erpnext/stock/report/product_bundle_balance/product_bundle_balance.py +++ b/erpnext/stock/report/product_bundle_balance/product_bundle_balance.py @@ -182,7 +182,7 @@ def get_items(filters): pbi.uom, pbi.qty, ) - .where(pb.new_item_code.isin(parent_items) & (IfNull(pb.disabled, 0) == 0)) + .where(pb.new_item_code.isin(parent_items)) ).run(as_dict=1) child_items = set()