brotherton-erpnext/erpnext/patches/v6_4/set_user_in_contact.py

7 lines
192 B
Python
Raw Normal View History

2015-10-07 05:37:43 +00:00
import frappe
def execute():
frappe.reload_doctype("Contact")
2015-10-07 05:37:43 +00:00
frappe.db.sql("""update tabContact, tabUser set tabContact.user = tabUser.name
where tabContact.email_id = tabUser.email""")