Restrict Warehouse Based On Cost Center

I created custom field: Cost Center on Warehouse doctype which is linked with Cost Center doctype

I want to restrict warehouse on user permission setting by cost center value. So I set cost center ‘abc’ to user A. I’ve selected cost center doctype on Apply User Permission in Role Permission Manager.

But User A still able to choose other warehouses e.g in delivery note which is not linked to his/her cost center permission.

What I might missed here?


Please check whether have you check “Apply User Permission” check-box in Role permission manager.
Refer following link :

Off course I checked it…but not working. All warehouses are still visible to user A… Any ideas?