How set permission for sales persons sales invoice if multiple persons are in the "Sales Team" table are added?

I need to make sales invoice available for Sales persons in case he is one of the sales persons included in the Sales Team table of the invoice.
I can easily restrict his “Read” permissions for invoices where he is mentioned. But the big problem is when there is another sales person in that table.


for example:
I have Sales person A and Sales Person B
If A is only given the permission to view his invoices, having Sales person B in that table will hide the invoice from Person A, as he doesn’t have the permissions to view B’s invoices.
Is there a way to make a flexible permission in case he is mentioned even if there are other people there?

Any suggestions? :slightly_smiling_face: