This question has been flagged
1 Reply
2314 Views

Hi All,


I tried to restrict Activities as all users can see other's Activity in timesheets Modules using Record Roles as [('user_id','=',user.id)]. This works Good as it shows only respective user's Activities, But

If this Rule is applied then the managers couldn't be able to see Time Sent (in timesheets) of their Followers.

Can Any one help me to write record rule for this so that only user can see only his Activities as well as manager's can see Time sheets spent by his Followers.


Thanks in Advance.

Avatar
Discard
Best Answer

Add a many2many in users for selecting the users under the corresponding managers. Add this filter also in domain with OR condition.

Avatar
Discard