9 lines
310 B
Python
9 lines
310 B
Python
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
import webnotes
|
|
|
|
def execute():
|
|
webnotes.conn.sql("""update tabCommunication
|
|
set sent_or_received= if(ifnull(recipients, '')='', "Received", "Sent")""") |