mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
10 lines
396 B
Python
10 lines
396 B
Python
import webnotes
|
|
|
|
def execute():
|
|
for doctype in ("Contact", "Lead", "Job Applicant", "Supplier", "Customer", "Quotation", "Sales Person", "Support Ticket"):
|
|
fieldname = doctype.replace(" ", '_').lower()
|
|
webnotes.conn.sql("""update tabCommunication
|
|
set parenttype=%s, parentfield='communications',
|
|
parent=`%s`
|
|
where ifnull(`%s`, '')!=''""" % ("%s", fieldname, fieldname), doctype)
|
|
|