fix: fetch todos with status not equal to cancelled in assigned to sidebar filter (#10714)

(cherry picked from commit d682a64ebd3d2cd3d307ff06ceca7a729412dda7)
This commit is contained in:
Prssanna Desai 2020-06-17 15:07:20 +05:30 committed by mergify-bot
parent 4c6b58da26
commit 5f119b33ea

View file

@ -35,7 +35,7 @@ def get_group_by_count(doctype, current_filters, field):
from
`tabToDo`, `tabUser`
where
`tabToDo`.status='Open' and
`tabToDo`.status!='Cancelled' and
`tabToDo`.owner = `tabUser`.name and
`tabUser`.user_type = 'System User'
{subquery_condition}