mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 23:58:30 +00:00
[email digest] [fix] [hot] only open to-do items
This commit is contained in:
@@ -312,7 +312,7 @@ class EmailDigest(Document):
|
||||
|
||||
def get_todo_list(self, user_id):
|
||||
todo_list = frappe.db.sql("""select *
|
||||
from `tabToDo` where (owner=%s or assigned_by=%s)
|
||||
from `tabToDo` where (owner=%s or assigned_by=%s) and status="Open"
|
||||
order by field(priority, 'High', 'Medium', 'Low') asc, date asc""",
|
||||
(user_id, user_id), as_dict=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user