How can we restrict certain documents in a Listview based on value of a field?

I want user with certain role to see only those Sales Order whose warehouse (custom field) is those assigned to them. e.g If a warehouse manager login he should be able to see only those Sales Order of his own warehouse. I tried User Restriction but didn’t worked. also tried JS code but it is just filtering the list view. If the user remove the filter it will again show all Sales Order. Can anyone help?

Hi @Nijina,

If you have not checked then please check it documentation.

Thank You!