2013-11-20 12:59:58 +05:30
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-10-03 17:26:33 +05:30
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
2013-10-03 19:32:23 +05:30
|
|
|
webnotes.reload_doc("core", "doctype", "communication")
|
|
|
|
|
2013-10-03 17:26:33 +05:30
|
|
|
webnotes.conn.sql("""update tabCommunication
|
|
|
|
set sent_or_received= if(ifnull(recipients, '')='', "Received", "Sent")""")
|