Browse Source

fix: Ability to disable standard notification

version-14
Suraj Shetty 3 years ago
parent
commit
1c92ccf276
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/doctype/notification/notification.py

+ 1
- 1
frappe/email/doctype/notification/notification.py View File

@@ -61,7 +61,7 @@ def get_context(context):
""")

def validate_standard(self):
if self.is_standard and not frappe.conf.developer_mode:
if self.is_standard and self.enabled and not frappe.conf.developer_mode:
frappe.throw(_('Cannot edit Standard Notification. To edit, please disable this and duplicate it'))

def validate_condition(self):


Loading…
Cancel
Save