Merge pull request #22312 from frappe/email-digest-html

fix: Email digest html view fix
This commit is contained in:
Deepesh Garg 2020-06-19 11:36:02 +05:30 committed by GitHub
commit 23cb5e1869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,8 +101,7 @@ class EmailDigest(Document):
if not context.purchase_order_list:
frappe.throw(_("No items to be received are overdue"))
if not (context.events or context.todo_list or context.notifications or context.cards
or context.purchase_orders_items_overdue_list):
if not context:
return None
frappe.flags.ignore_account_permission = False