8 lines
232 B
Python
8 lines
232 B
Python
from __future__ import unicode_literals
|
|
import frappe
|
|
|
|
def execute():
|
|
frappe.reload_doctype("Contact")
|
|
frappe.db.sql("""update tabContact, tabUser set tabContact.user = tabUser.name
|
|
where tabContact.email_id = tabUser.email""")
|