{
 "actions": [],
 "allow_rename": 1,
 "creation": "2013-01-10 16:34:31",
 "description": "Create and Send Newsletters",
 "doctype": "DocType",
 "document_type": "Other",
 "engine": "InnoDB",
 "field_order": [
  "send_from",
  "schedule_sending",
  "schedule_send",
  "recipients",
  "email_group",
  "email_sent",
  "newsletter_content",
  "subject",
  "content_type",
  "message",
  "message_md",
  "message_html",
  "send_unsubscribe_link",
  "send_attachments",
  "published",
  "route",
  "test_the_newsletter",
  "test_email_id",
  "test_send",
  "scheduled_to_send"
 ],
 "fields": [
  {
   "fieldname": "email_group",
   "fieldtype": "Table",
   "in_standard_filter": 1,
   "label": "Email Group",
   "options": "Newsletter Email Group"
  },
  {
   "fieldname": "send_from",
   "fieldtype": "Data",
   "ignore_xss_filter": 1,
   "label": "Sender"
  },
  {
   "default": "0",
   "fieldname": "email_sent",
   "fieldtype": "Check",
   "label": "Email Sent",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "fieldname": "newsletter_content",
   "fieldtype": "Section Break",
   "label": "Content"
  },
  {
   "fieldname": "subject",
   "fieldtype": "Small Text",
   "in_global_search": 1,
   "in_list_view": 1,
   "label": "Subject",
   "reqd": 1
  },
  {
   "depends_on": "eval: doc.content_type === 'Rich Text'",
   "fieldname": "message",
   "fieldtype": "Text Editor",
   "in_list_view": 1,
   "label": "Message",
   "mandatory_depends_on": "eval: doc.content_type === 'Rich Text'"
  },
  {
   "default": "1",
   "fieldname": "send_unsubscribe_link",
   "fieldtype": "Check",
   "label": "Send Unsubscribe Link"
  },
  {
   "default": "0",
   "fieldname": "published",
   "fieldtype": "Check",
   "label": "Published"
  },
  {
   "fieldname": "route",
   "fieldtype": "Data",
   "hidden": 1,
   "label": "Route",
   "read_only": 1
  },
  {
   "collapsible": 1,
   "fieldname": "test_the_newsletter",
   "fieldtype": "Section Break",
   "label": "Testing"
  },
  {
   "description": "A Lead with this Email Address should exist",
   "fieldname": "test_email_id",
   "fieldtype": "Data",
   "label": "Test Email Address",
   "options": "Email"
  },
  {
   "depends_on": "eval: doc.test_email_id",
   "fieldname": "test_send",
   "fieldtype": "Button",
   "label": "Test",
   "options": "test_send"
  },
  {
   "fieldname": "scheduled_to_send",
   "fieldtype": "Int",
   "hidden": 1,
   "label": "Scheduled To Send"
  },
  {
   "fieldname": "recipients",
   "fieldtype": "Section Break",
   "label": "Recipients"
  },
  {
   "depends_on": "eval: doc.schedule_sending",
   "fieldname": "schedule_send",
   "fieldtype": "Datetime",
   "label": "Schedule Send",
   "read_only_depends_on": "eval: doc.email_sent"
  },
  {
   "default": "0",
   "fieldname": "send_attachments",
   "fieldtype": "Check",
   "label": "Send Attachments"
  },
  {
   "fieldname": "content_type",
   "fieldtype": "Select",
   "label": "Content Type",
   "options": "Rich Text\nMarkdown\nHTML"
  },
  {
   "depends_on": "eval:doc.content_type === 'Markdown'",
   "fieldname": "message_md",
   "fieldtype": "Markdown Editor",
   "label": "Message (Markdown)",
   "mandatory_depends_on": "eval:doc.content_type === 'Markdown'"
  },
  {
   "depends_on": "eval:doc.content_type === 'HTML'",
   "fieldname": "message_html",
   "fieldtype": "HTML Editor",
   "label": "Message (HTML)",
   "mandatory_depends_on": "eval:doc.content_type === 'HTML'"
  },
  {
   "default": "0",
   "fieldname": "schedule_sending",
   "fieldtype": "Check",
   "label": "Schedule Sending",
   "read_only_depends_on": "eval: doc.email_sent"
  }
 ],
 "has_web_view": 1,
 "icon": "fa fa-envelope",
 "idx": 1,
 "index_web_pages_for_search": 1,
 "is_published_field": "published",
 "links": [],
 "max_attachments": 3,
 "modified": "2020-08-24 19:59:37.262500",
 "modified_by": "Administrator",
 "module": "Email",
 "name": "Newsletter",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Newsletter Manager",
   "set_user_permissions": 1,
   "share": 1,
   "write": 1
  }
 ],
 "route": "newsletters",
 "sort_field": "modified",
 "sort_order": "ASC",
 "title_field": "subject",
 "track_changes": 1
}