How an employee can see only allocated task in ToDo list

In hooks.py file there is a section called permission query conditions. You can call your function from there.

permission_query_conditions = {
“ToDo”: “your_appname.your_appname.customization.todo.todo.todo_permission”
}

And on todo.py

def todo_permission(user):
return “”“(tabToDo.allocated_to = ‘{0}’)”“”.format(user)

1 Like