brotherton-erpnext/erpnext/patches/mar_2012/cleanup_control_panel.py
2012-03-21 17:15:49 +05:30

8 lines
255 B
Python

import webnotes
def execute():
webnotes.conn.sql("""\
DELETE FROM `tabSingles`
WHERE doctype = 'Control Panel'
AND field IN ("sync_with_gateway", "mail_password", "auto_email_id",
"mail_port", "outgoing_mail_server", "mail_login", "use_ssl")""")