Changed doclist to doc
diff --git a/erpnext/hr/doctype/employee/employee.py b/erpnext/hr/doctype/employee/employee.py
index 5cdf353..a8b7d8f 100755
--- a/erpnext/hr/doctype/employee/employee.py
+++ b/erpnext/hr/doctype/employee/employee.py
@@ -192,14 +192,14 @@
def make_employee(source_name, target_doc=None):
def set_missing_values(source, target):
target.personal_email = frappe.db.get_value("Job Applicant", source.job_applicant, "email_id")
- doclist = get_mapped_doc("Offer Letter", source_name, {
+ doc = get_mapped_doc("Offer Letter", source_name, {
"Offer Letter": {
"doctype": "Employee",
"field_map": {
"applicant_name": "employee_name",
}}
}, target_doc, set_missing_values)
- return doclist
+ return doc
def validate_employee_role(doc, method):
# called via User hook