diff --git a/patches/november_2012/communication_sender_and_recipient.py b/patches/november_2012/communication_sender_and_recipient.py new file mode 100644 index 00000000000..b8567b4566b --- /dev/null +++ b/patches/november_2012/communication_sender_and_recipient.py @@ -0,0 +1,7 @@ +import webnotes + +def execute(): + 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,'')=''""") \ No newline at end of file