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

This commit is contained in:
sahil28297
2020-05-11 19:28:30 +05:30
committed by GitHub
parent c6466c7d97
commit a611cc5916

View File

@@ -1,9 +1,10 @@
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()