chore: remove example email id field from email domain
This commit is contained in:
parent
d5aa898151
commit
0614c4098c
3 changed files with 3 additions and 20 deletions
|
|
@ -1,5 +1,3 @@
|
|||
frappe.ui.form.on("Email Domain", {
|
||||
email_id: function (frm){
|
||||
frm.set_value("domain_name",frm.doc.email_id.split("@")[1])
|
||||
},
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"email_settings",
|
||||
"email_id",
|
||||
"column_break_3",
|
||||
"domain_name",
|
||||
"mailbox_settings",
|
||||
"email_server",
|
||||
|
|
@ -32,19 +30,13 @@
|
|||
"fieldtype": "Section Break"
|
||||
},
|
||||
{
|
||||
"description": "For example: for the email address <b>abcd@gmail.com</b>, the domain is <b>gmail.com</b>",
|
||||
"fieldname": "domain_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Domain Name",
|
||||
"reqd": 1,
|
||||
"unique": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "email_id",
|
||||
"fieldtype": "Data",
|
||||
"label": "Example Email Address",
|
||||
"options": "Email",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "mailbox_settings",
|
||||
"fieldtype": "Section Break",
|
||||
|
|
@ -127,10 +119,6 @@
|
|||
"fieldtype": "Check",
|
||||
"label": "Use SSL for Outgoing"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_3",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_9",
|
||||
"fieldtype": "Column Break"
|
||||
|
|
@ -142,7 +130,7 @@
|
|||
],
|
||||
"icon": "icon-inbox",
|
||||
"links": [],
|
||||
"modified": "2022-07-02 20:13:33.516564",
|
||||
"modified": "2022-07-02 20:35:36.199633",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Email",
|
||||
"name": "Email Domain",
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ class EmailDomain(Document):
|
|||
"""Validate email id and check POP3/IMAP and SMTP connections is enabled."""
|
||||
logger = frappe.logger()
|
||||
|
||||
if self.email_id:
|
||||
validate_email_address(self.email_id, True)
|
||||
|
||||
if frappe.local.flags.in_patch or frappe.local.flags.in_test:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue