email digest html fix

(cherry picked from commit bd449c8d07)
This commit is contained in:
Anupam K
2020-06-18 14:20:22 +05:30
committed by mergify-bot
parent 6f3e5e1891
commit 168d070d73

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