Merge pull request #58197 from diptanilsaha/fix/get_digest_msg

refactor(email_digest): convert `get_digest_msg` from module function to instance method
This commit is contained in:
Diptanil Saha
2026-08-15 21:05:44 +05:30
committed by GitHub

View File

@@ -958,7 +958,9 @@ def send():
@frappe.whitelist()
def get_digest_msg(name: str):
return frappe.get_doc("Email Digest", name).get_msg_html()
email_digest = frappe.get_doc("Email Digest", name)
email_digest.check_permission()
return email_digest.get_msg_html()
def get_incomes_expenses_for_period(account, from_date, to_date):