fix: hide number counter for new document view shortcut
(cherry picked from commit bb46d23772cfa9ad2e23a24325b16ed17fdfee6c)
This commit is contained in:
parent
dc6d71e84b
commit
b4b4d8f22f
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue