Limiting User to one Warehouse; the warehouse not showed in link if input field is cleared

Material Request did not have a linked field to warehouse. The linked field was in its child table Material Request Item. So I customized the form to add a hidden field of link type- pointing to the warehouse.

This way I could add the user permission “If Warehouse is permitted” to the Material Request DocType.