patch to remove old control panel email settings

This commit is contained in:
Anand Doshi 2011-12-15 15:40:15 +05:30
parent 48d8d36b79
commit ca39b180f5

View 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()