patch to remove old control panel email settings
This commit is contained in:
parent
48d8d36b79
commit
ca39b180f5
15
erpnext/patches/remove_old_cp_email_settings.py
Normal file
15
erpnext/patches/remove_old_cp_email_settings.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
def execute():
|
||||||
|
"""
|
||||||
|
remove control panel email settings if automail.webnotestech.com
|
||||||
|
"""
|
||||||
|
from webnotes.model.doc import Document
|
||||||
|
cp = Document('Control Panel')
|
||||||
|
if cp:
|
||||||
|
if cp.outgoing_mail_server == 'mail.webnotestech.com':
|
||||||
|
cp.outgoing_mail_server = None;
|
||||||
|
cp.mail_login = None;
|
||||||
|
cp.mail_password = None;
|
||||||
|
cp.mail_port = None;
|
||||||
|
cp.auto_email_id = 'automail@erpnext.com'
|
||||||
|
cp.save()
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user