ソースを参照

fix: Ability to disable standard notification

version-14
Suraj Shetty 3年前
コミット
1c92ccf276
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      frappe/email/doctype/notification/notification.py

+ 1
- 1
frappe/email/doctype/notification/notification.py ファイルの表示

@@ -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):


読み込み中…
キャンセル
保存