mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
[communication] [minor
This commit is contained in:
0
patches/september_2013/__init__.py
Normal file
0
patches/september_2013/__init__.py
Normal file
10
patches/september_2013/p01_update_communication.py
Normal file
10
patches/september_2013/p01_update_communication.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user