fix: dont consider virtual doctypes for sidebar generation

This commit is contained in:
sokumon 2026-01-17 14:15:45 +05:30
parent 0b176ec42f
commit d96f2fe2a4

View file

@ -334,7 +334,7 @@ def choose_top_doctypes(doctype_names):
try:
doctype_count_map = {}
for doctype in doctype_names:
if not is_single_doctype(doctype):
if not is_single_doctype(doctype) and not frappe.get_meta(doctype).is_virtual:
doctype_count_map[doctype] = frappe.db.count(doctype)
top_doctypes = [
name