fix: dont consider virtual doctypes for sidebar generation
This commit is contained in:
parent
0b176ec42f
commit
d96f2fe2a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue