[minor] [fix] communication status patch

This commit is contained in:
Anand Doshi 2013-10-03 19:32:23 +05:30
parent 9dda0fb63b
commit 3ab6a65743

View File

@ -5,5 +5,7 @@ from __future__ import unicode_literals
import webnotes
def execute():
webnotes.reload_doc("core", "doctype", "communication")
webnotes.conn.sql("""update tabCommunication
set sent_or_received= if(ifnull(recipients, '')='', "Received", "Sent")""")