Hi, Working with record rules for Project/Tasks
1. Each employee should be able to see only those tasks which are assigned to him.
Achieved through record rule using [('user_id','=',user.id)] domain filter with Task Object. Group Name : Project/User
2. Employee should be able to add only work summary means timesheet. But right now, even after applying above record rule he can assign task to other person, can change task name, Deasdline etc....
Can anyone please help me to writer proper Record Rule.
Thanks in advance!!
If you add a rule as per your 1st step then users will be able to Edit the records. So of course they can make change in deadline, description, assign to other users etc...
If you give edit rights then & then users will able to add summery / timesheet entries into task. and If they are able able to add/modify/delete entries in summery then other fields of task must be editable. the feature you want, might be impossible to acthieve from record rules.
So you need to think from some custom way, For example,
- You can add a group and add those fields under that group. So only some persons can edit those fields of task ( Deadlines, decription, user,name etc..) Then you can give editable rights to task. Now evenif, as per your 1st point, user is able to edit the task, those fields ( Deadlines, decription, user,name etc..) will not be editable. So user can add only task summery.
- You can create Custom form view, and show that form view to those users which are not supposed to edit other fields except the task summery. Hide main task FORM view from those users. Add that new menu under that group, so only some of users (high level users) can edit all the fields of task.
Let me know if you have further questions,
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/25/14, 5:25 AM|
|Seen: 963 times|
|Last updated: 3/16/15, 8:10 AM|