if I want to restrict user access based on fields? Say show only Completed Documents in Sales Order to a specific role? Is there a way?
You can set permission to all documents of a specific doctype “Only” based on link fields.
But this can only be set for user by user not a whole role.
So, for example, you can give a user a limited permission for the field “territory” (which is a link field), when it is a specific city in the sales invoice doctype.
So, this user will only open the invoices for the specified city only.
this may give you some ideas