feat: add job applicant's email in job offer (#20153)

This commit is contained in:
Rohan
2019-12-31 17:09:03 +05:30
committed by Nabin Hait
parent 5cc7648e9c
commit b73b347697
4 changed files with 183 additions and 593 deletions

View File

@@ -0,0 +1,12 @@
import frappe
def execute():
frappe.reload_doc("hr", "doctype", "job_offer")
frappe.db.sql("""
UPDATE
`tabJob Offer` AS offer
SET
applicant_email = (SELECT email_id FROM `tabJob Applicant` WHERE name = offer.job_applicant)
""")