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.
I have created two sales teams with the following team hierarchy:
- Sales Manager
- Sales Person
- Sales & Quotations
- Sales Person
I have set the access rights of team leader and members to sales/Manager and see own leads respectively. Now the issue is that the sales of one team is showing in the sales of other team. I have applied different record rules to achieve desire state, but failed to get success. I have tried different user access rights also.
Following rules I have tested which didn't worked:
Help me out of this headache.
Finally I got the solution of this headache. Actually the Manager group was inheriting from sales / see own leads and sales / see all leads so the result was OR operation of all rules. The problem in my case is driven from the see all leads group's All Orders rule, having this domain filter [(1, '=' 1)] which is a special domain filter, allowing all sales orders to show. I just deactive this rule from its document (or if this would be problem for others rules in your case, then simply changed this rule to your desired one), and then everything went fine as I want. This is the domain filter I used in the object sales.order rule of my Manager group [('section_id','=',user.default_section_id.id)] .
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: 2/18/15, 6:20 AM|
|Seen: 636 times|
|Last updated: 3/20/15, 1:53 AM|