From c55aa295fcfc90dd79a72cd38db4396e8f1f4485 Mon Sep 17 00:00:00 2001 From: David Angulo Date: Thu, 13 May 2021 01:46:04 -0500 Subject: [PATCH] fix: Translate weekday when getting weekly off dates (#25691) --- erpnext/hr/doctype/holiday_list/holiday_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/holiday_list/holiday_list.py b/erpnext/hr/doctype/holiday_list/holiday_list.py index 8af8cea605d..f65e6e12074 100644 --- a/erpnext/hr/doctype/holiday_list/holiday_list.py +++ b/erpnext/hr/doctype/holiday_list/holiday_list.py @@ -23,7 +23,7 @@ class HolidayList(Document): last_idx = max([cint(d.idx) for d in self.get("holidays")] or [0,]) for i, d in enumerate(date_list): ch = self.append('holidays', {}) - ch.description = self.weekly_off + ch.description = _(self.weekly_off) ch.holiday_date = d ch.weekly_off = 1 ch.idx = last_idx + i + 1