In Odoo 18, when you import a salesperson (or any other record) under a specific company, it is structured to belong to that company only. Odoo’s multi-company setup isolates records based on the company they are associated with.
To ensure that the same salesperson can be accessed across multiple companies, you have a few options:
Option 1: Create Salesperson in Each Company
The simplest approach is to create the salesperson record in each company where you need it. This means you would have separate records for the same salesperson in different companies.
-
Switch to the Desired Company:
- Go to your user profile and switch to the desired company.
-
Create Salesperson:
- Navigate to
Sales > Salespersons > Create.
- Manually enter the details or copy them from the original salesperson.
-
Repeat for Other Companies:
- Switch to other companies and repeat the process.
Option 2: Ensure Salesperson is Multi-Company
If you want the same salesperson record to be accessible across companies without creating duplicates, you can set the salesperson as a multi-company user.
-
Go to User Settings:
- Navigate to
Settings > Users & Companies > Users.
-
Edit User:
- Find the respective salesperson's user profile and open it.
-
Multi-Company Access:
- Under the "Access Rights" tab, make sure to check the option for
Allow multi-company access. Here you can select multiple companies where this user can be active.
-
Save Changes:
- Ensure you save your changes.
Option 3: Use Import with Relation to a Company
If you want to handle imports correctly without losing references, make sure your import file has fields correctly set up:
-
Import File Structure:
- Your CSV or Excel import file should include a column for
Company. This way, you can create a link to the company directly during the import.
-
Use Company IDs:
- Ensure you use the correct Company IDs in your import file. This involves checking the
res.company model to see the associated IDs.
-
Import Wizard:
- Use the import wizard in Odoo, ensuring the mapping shows correctly to the fields required.
Option 4: Modify Record Rules and Access Rights
If you have specific requirements where salespersons should be visible across different companies as a provision, consider adjusting your record rules and access rights:
-
Create Record Rules:
- Navigate to
Settings > Technical > Security > Record Rules and create custom rules that might allow for this visibility.
-
Adjust User Roles:
- Adjust roles and permissions as needed to ensure users can see the roles across the companies they manage.
Conclusion
For the roles of salespersons in Odoo's multi-company setup, recognizing how they are affiliated with specific companies is key. Depending on the operational needs, either duplicate the salesperson in each company, configure multi-company access within user settings, or fine-tune imports while ensuring correct identifiers are set up. If you still require functionality that is not supported by default in Odoo, consider discussing custom development with an Odoo specialist or developer.