fix(patch): use translated string while setting notification template (#21678)

This commit is contained in:
sahil28297
2020-05-11 19:28:49 +05:30
committed by GitHub
parent 0df4f1738c
commit 00bbc76605

View File

@@ -1,8 +1,9 @@
from __future__ import unicode_literals
from frappe import _
import frappe
def execute():
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()
hr_settings.leave_approval_notification_template = _("Leave Approval Notification")
hr_settings.leave_status_notification_template = _("Leave Status Notification")
hr_settings.save()