fix: hide create button for cancelled doc in dashboard links (#31295)
This commit is contained in:
parent
ef4ffbb304
commit
aed69f92f7
1 changed files with 1 additions and 1 deletions
|
|
@ -1954,7 +1954,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
if (this.can_make_methods && this.can_make_methods[doctype]) {
|
||||
return this.can_make_methods[doctype](this);
|
||||
} else {
|
||||
if (this.meta.is_submittable && !this.doc.docstatus == 1) {
|
||||
if (this.meta.is_submittable && this.doc.docstatus !== 1) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue