Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3704 Zobrazení

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.

Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
1403
3
úno 25
2152
1
pro 24
2212
2
bře 24
2531
2
bře 24
3053