diff --git a/webnotes/widgets/moduleview.py b/webnotes/widgets/moduleview.py index 5065272bd3..a98f4b35c3 100644 --- a/webnotes/widgets/moduleview.py +++ b/webnotes/widgets/moduleview.py @@ -17,7 +17,7 @@ def get_count(doctypes): count = {} can_read = webnotes.user.get_can_read() for d in doctypes: - if doctype in can_read: + if d in can_read: count[d] = get_doctype_count_from_table(d) return count