Custom script for showing particular records


i have created a “assigned to” field where we can select the employee to whom we want to assign the manufacturing task.

Problem : i need a simple script that will show only the records assigned to a perticular user when that user is logged it. Just as in the ToDo module.


Why re-implement the existing assign feature?


this is for a custom doctype (Manufacturing process tracking). I would like to have it work in a similar way to the To Do module. I don’t want employees to access records meant for other employees.

Please help.