Limiting permissions of suppliers so that they can see their own transactions

Greetings,

I have a doctype called show having a table in it holding different suppliers involved in the show it self,
what i want to do is to limit suppliers to shows in which they are linked to just like Request for quotation. Because there are many suppliers on one show it doesnt matter that they see others they are working with; but they dont see shows they are not linked with.

best regards,
Oasis

Have you tried User Permissions Manager ?

yes but this doesnt involve the linked supplier filter. i think a custom script is the only solution

@Oasis_Agano,

You can also use the permission_query_conditions to set the custom permissions.

please check frappe/hooks.py at develop · frappe/frappe · GitHub

Thanks,
Makarand

Is it possible to use the assign button on the right and set that users see things assigned to them?