Update utils.py

This commit is contained in:
Manas Solanki 2018-05-15 18:52:14 +05:30 committed by GitHub
parent 02f0bcdbd9
commit 70899f5a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,11 +21,11 @@ class EmployeeBoardingController(Document):
def on_submit(self):
# create the project for the given employee onboarding
project_name = _(self.doctype) + " : " + self.employee_name
project_name = _(self.doctype) + " : "
if self.doctype == "Employee Onboarding":
project_name += " (" + self.job_applicant + ")"
project_name += self.job_applicant
else:
project_name += " (" + self.employee + ")"
project_name += self.employee
project = frappe.get_doc({
"doctype": "Project",
"project_name": project_name,