2011-12-15 15:40:15 +05:30
|
|
|
def execute():
|
|
|
|
"""
|
|
|
|
remove control panel email settings if automail.webnotestech.com
|
|
|
|
"""
|
|
|
|
from webnotes.model.doc import Document
|
2011-12-15 15:46:31 +05:30
|
|
|
cp = Document('Control Panel', 'Control Panel')
|
2011-12-15 15:40:15 +05:30
|
|
|
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()
|
|
|
|
|