Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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,
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/25/14, 5:25 AM|
|Seen: 1357 times|
|Last updated: 3/16/15, 8:10 AM|