From 65994210f63578def7e30f5a8ced9544c6e8a5d9 Mon Sep 17 00:00:00 2001 From: Zarrar Date: Fri, 8 Jun 2018 16:57:06 +0530 Subject: [PATCH] fix patch to add email template in hr settings (#14427) --- erpnext/patches.txt | 2 +- erpnext/patches/v11_0/set_default_email_template_in_hr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 8e0aa74c91..658b7e7795 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -519,7 +519,7 @@ erpnext.patches.v11_0.rename_employee_loan_to_loan erpnext.patches.v11_0.move_leave_approvers_from_employee erpnext.patches.v11_0.update_department_lft_rgt erpnext.patches.v11_0.add_default_email_template_for_leave -erpnext.patches.v11_0.set_default_email_template_in_hr +erpnext.patches.v11_0.set_default_email_template_in_hr #08-06-2018 erpnext.patches.v11_0.uom_conversion_data erpnext.patches.v10_0.taxes_issue_with_pos erpnext.patches.v11_0.update_account_type_in_party_type diff --git a/erpnext/patches/v11_0/set_default_email_template_in_hr.py b/erpnext/patches/v11_0/set_default_email_template_in_hr.py index f69344664e..a4bc3559f8 100644 --- a/erpnext/patches/v11_0/set_default_email_template_in_hr.py +++ b/erpnext/patches/v11_0/set_default_email_template_in_hr.py @@ -2,7 +2,7 @@ import frappe def execute(): - hr_settings = frappe.get_doc("HR Settings") + hr_settings = frappe.get_single("HR Settings") hr_settings.leave_approval_notification_template = "Leave Approval Notification" hr_settings.leave_status_notification_template = "Leave Status Notification" hr_settings.save() \ No newline at end of file