Sales Team Customer Restrictions
by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse$ 25.01
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Invoicing (account) • Calendar (calendar) • Contacts (contacts) • Discuss (mail) |
| Lines of code | 180 |
| Technical Name |
access_customer_by_salesteam |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Invoicing (account) • Calendar (calendar) • Contacts (contacts) • Discuss (mail) |
| Lines of code | 180 |
| Technical Name |
access_customer_by_salesteam |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
Sales Team Customer Restrictions
Automatically restrict customers, sales orders, and leads to their assigned sales teams â perfect for multi team B2B environments
- Team Based Customer Visibility Salespeople see only customers assigned to their sales teams.
- Order & Lead Isolation â Quotations, sales orders, and CRM leads are automatically filtered by team.
- Manager Override â Users in the Sales Manager group see all records (no restrictions).
- Automatic Team Assignment â Customers assigned to a team appear in that teamâs customer list.
- Seamless UI Integration â Adds a âCustomersâ tab in the Sales Team form with a kanban view of assigned customers.
- Works Everywhere â Restrictions apply to list views, kanban, pivot, graph, and search panels.
- Zero Configuration â Install, assign customers to teams, and the rules apply automatically.
- Customers A salesperson can only see customers that belong to any of their sales teams. The restriction is only applied when searching in customer mode.
- Sales Orders Salespeople see only orders where the team is one of their teams.
- CRM Leads Salespeople see only leads assigned to their teams.
When a user is a Sales Manager all restrictions are bypassed, giving them full visibility.
Additionally, the module adds a Customers tab to each Sales Team form, showing all customers linked to that team. This allows managers to easily see which customers belong to which team.
In forms (Sale Order, CRM Lead), the customer selection field is dynamically filtered to show only customers belonging to the userâs teams.
Before â All Customers Visible
Salesperson sees every customer in the system




After â Only Team Customers
Salesperson sees only customers assigned to their team









Step 1: Install the Module
- Copy the module folder to your Odoo addons directory.
- Update the apps list (Apps â Update Apps List).
- Search for âSales Team Data Isolationâ and click Install.
Step 2: Assign Customers to Sales Teams
- Go to Sales â Configuration â Sales Teams.
- Open a sales team and go to the new âCustomersâ tab.
- Click Add and select customers that belong to this team.
- Repeat for each sales team.
Step 3: Ensure User Membership
- Each sales team already has a Team Leader and Members (from the âMembersâ tab).
- Salespeople will see only customers assigned to teams where they are either leader or member.
- Sales Managers (group
Sales / Manager) see all records regardless.
Note: No further configuration is needed. The restrictions apply automatically to all list views, kanban, pivot, graph, and search panels.
Multi Brand Companies
Each sales team handles a different brand. Salespeople only see customers of their brand, preventing cross team confusion.
Regional Sales Teams
North America team sees only NA customers; EMEA team sees only EMEA customers. No accidental cross territory sales.
Data Privacy Compliance
Enforce strict data segregation to meet GDPR or other privacy requirements â sales reps only access their assigned customers.
Sales Performance Tracking
Managers can easily see team specific pipelines and orders without manually filtering by team.
Channel Partner Management
Each channel partner (distributor) has a dedicated sales team. Partnersâ customers are only visible to that team.
Ecommerce B2B Portals
If salespeople use the backend to create orders for their customers, this module ensures they only see their own customers.
Q: How does the module know which customers belong to a sales team?
A: You manually assign customers to teams via the new âCustomersâ tab on the Sales Team form. This gives you full control.
Q: Can a customer be assigned to multiple sales teams?
A: Yes, the many2many field allows a customer to belong to several teams. In that case, members of any of those teams will see the customer.
Q: Does this affect the website/ecommerce customer login?
A: No, the restrictions only apply to backend (internal) users. Website portal users are not affected.
Q: What if a salesperson creates a new customer? Does it auto assign to their team?
A: The module does not auto assign. You must manually assign customers to teams. This gives managers control over which customers belong to which team.
Q: Does it work with âMy Customersâ filter?
A: Yes, the domain restrictions are applied after the userâs own filters, so âMy Customersâ will be further restricted to team customers.
Q: Can a sales manager see all customers even if not assigned to a team?
A: Yes, the manager group bypasses all restrictions. Managers see all customers, orders, and leads regardless of team assignment.
Q: Does this module conflict with other security rules (e.g., record rules)?
A: It works alongside standard Odoo record rules. The domain filters are additive â they restrict further but do not remove existing restrictions.
Need Custom Data Isolation Rules or Have Questions?
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module