Kaynağa Gözat

fix: Ability to disable standard notification

version-14
Suraj Shetty 3 yıl önce
ebeveyn
işleme
1c92ccf276
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      frappe/email/doctype/notification/notification.py

+ 1
- 1
frappe/email/doctype/notification/notification.py Dosyayı Görüntüle

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


def validate_standard(self): 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')) frappe.throw(_('Cannot edit Standard Notification. To edit, please disable this and duplicate it'))


def validate_condition(self): def validate_condition(self):


Yükleniyor…
İptal
Kaydet