diff --git a/frappe/public/js/frappe/widgets/shortcut_widget.js b/frappe/public/js/frappe/widgets/shortcut_widget.js index 18d05043e3..72e7e152e6 100644 --- a/frappe/public/js/frappe/widgets/shortcut_widget.js +++ b/frappe/public/js/frappe/widgets/shortcut_widget.js @@ -79,7 +79,8 @@ export default class ShortcutWidget extends Widget { }); let filters = frappe.utils.process_filter_expression(this.stats_filter); - if (this.type == "DocType" && filters) { + + if (this.type == "DocType" && this.doc_view != "New" && filters) { frappe.db .count(this.link_to, { filters: filters,