A sales person tree structure will be established. Sales Manager A will oversee 2 sales persons, while Sales Manager B will manage 3. Each manager will only have access to their own team’s data; Sales Manager A cannot see Sales Manager B’s information and vice versa. Additionally, Sales Manager A can view the details of their 2 allocated sales persons, and Sales Manager B can view the details of their 3. All sales persons will not have access to anyone else’s data.
@Manish_Kumar Write permission query related of your logic in your all doctype which have use by sales person so your query is resolved
use user permission for sales person.
for individual sales person give restriction to their own sales person profiles
but for sales manager give access to all sales person working under him