fix: Translate weekday when getting weekly off dates (#25691)

This commit is contained in:
David Angulo 2021-05-13 01:46:04 -05:00 committed by GitHub
parent af8436d0dc
commit c55aa295fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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