fix: Use `account_type == 'Stock'` to filter stock accounts
diff --git a/erpnext/stock/doctype/warehouse/warehouse.py b/erpnext/stock/doctype/warehouse/warehouse.py
index 3c2d6b8d..df16643 100644
--- a/erpnext/stock/doctype/warehouse/warehouse.py
+++ b/erpnext/stock/doctype/warehouse/warehouse.py
@@ -89,7 +89,7 @@
.on(ac.name == gle.account)
.select(gle.account)
.distinct()
- .where((sle.warehouse == name) & (ac.root_type == "Asset"))
+ .where((sle.warehouse == name) & (ac.account_type == "Stock"))
.orderby(sle.creation)
.run(as_dict=True)
)