Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3686 Widoki

I have created two sales teams with the following team hierarchy:

  • Sales Manager
    • Sales Person
      • Sales & Quotations

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:

[('section_id','=',user.default_section_id.id)]

[('user_id.section_id','in',[user.default_section_id.id])]

[('created_uid.section_id','=',user.default_section_id.id)]

Help me out of this headache.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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)] .

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 25
1369
3
lut 25
2071
1
gru 24
2158
2
mar 24
2504
2
mar 24
3012