mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
moved directory structure
This commit is contained in:
16
patches/june_2012/support_ticket_autoreply.py
Normal file
16
patches/june_2012/support_ticket_autoreply.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import unicode_literals
|
||||
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)
|
||||
Reference in New Issue
Block a user