brotherton-erpnext/erpnext/patches/june_2012/support_ticket_autoreply.py
2012-06-14 14:55:44 +05:30

15 lines
462 B
Python

def execute():
"""New Send Autoreply checkbox in Email Settings"""
import webnotes
import webnotes.utils
import webnotes.model.sync
webnotes.conn.commit()
webnotes.model.sync.sync('setup', 'email_settings')
webnotes.conn.begin()
sync_support_mails = webnotes.utils.cint(webnotes.conn.get_value('Email Settings',
None, 'sync_support_mails'))
if sync_support_mails:
webnotes.conn.set_value('Email Settings', None, 'send_autoreply', 1)