How an employee can see only allocated task in ToDo list

How an employee can see only allocated task in ToDo list

Hi, you can write a permission query for that.

can you share me the query please

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

Thanks. Is there any provision to do the front end. We want this option for some employees , others need to view