Skip to Content
Menu
This question has been flagged
4 Replies
4605 Views

ABC company: have 2 sales teams.

Team A: have 1 x Sales Manager (users: all documents), 2 x Sales Rep (uers: own documents) 

Team B: have 1 x Sales Manager (users: all documents), 2 x Sales Rep (uers: own documents) 

Problem: Sales Manager from Team A can see leads/opp from Sales Rep from Team B and even leads/opp created by Sales Manager from Team B.  

Please help with the solution on how to set access right & record rules to only allow Sales Manager from Team A to access all lead/opp from their own team sales rep and their own.

Avatar
Discard
Author

Thanks Aman & Abdalla for your help.

Specifically I will need some help with writing domain to allow a specific user that is set as team leader to be able to see all opportunity/leads from their own team members only and not opportunity/leads from other sales team. 

 

Best Answer

Hello,

As I understood your query, If you want to give all records access to specific people among all the people with the same access rights then you can create a new boolean field in Users.

Set the access rules according to your required domain with one more condition based on this field. If this field is true then all the conditions will be bypassed and all records will be accessible by the specific users.


Thanks,

Aman Prakash (Associate Software Engineer)

Webkul Software Private Limited

Avatar
Discard
Best Answer

Hello 

You can create record rule with domain "current user is team leader" and assign to group "Users: own documents".

Avatar
Discard
Best Answer

Groups and Access Rights in Odoo: https://goo.gl/4jAhtH

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 15
5864
0
Aug 24
777
0
Nov 22
1629
0
Oct 22
1130
1
Dec 20
1607