From e1a433812f21f7a2f178d3eb20cb76a41703317c Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 27 Nov 2012 18:41:42 +0530 Subject: [PATCH] refactored communication and added to Lead / Contact --- .../november_2012/communication_sender_and_recipient.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 patches/november_2012/communication_sender_and_recipient.py 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