patch to remove old control panel email settings

This commit is contained in:
Anand Doshi 2011-12-15 15:46:31 +05:30
parent ca39b180f5
commit 490d298fa0

View File

@ -3,7 +3,7 @@ def execute():
remove control panel email settings if automail.webnotestech.com
"""
from webnotes.model.doc import Document
cp = Document('Control Panel')
cp = Document('Control Panel', 'Control Panel')
if cp:
if cp.outgoing_mail_server == 'mail.webnotestech.com':
cp.outgoing_mail_server = None;