Files
erpnext/patches/november_2012/communication_sender_and_recipient.py
2012-11-27 18:45:21 +05:30

8 lines
304 B
Python

import webnotes
def execute():
webnotes.reload_doc("DocType", "Communication")
webnotes.conn.sql("""update tabCommunication set sender=email_address
where ifnull(support_ticket,'') != ''""")
webnotes.conn.sql("""update tabCommunication set recipients=email_address where
ifnull(sender,'')=''""")