chore: add translate function to email subject in digest frecuency (#38474)

chore: add translate function to email subject in digest frecuency
This commit is contained in:
Ernesto Ruiz 2023-12-01 01:11:14 -06:00 committed by GitHub
parent 9656412bba
commit b24e28953b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ class EmailDigest(Document):
if msg_for_this_recipient and row.recipient in valid_users:
frappe.sendmail(
recipients=row.recipient,
subject=_("{0} Digest").format(self.frequency),
subject=_("{0} Digest").format(_(self.frequency)),
message=msg_for_this_recipient,
reference_doctype=self.doctype,
reference_name=self.name,