To restrict users to stock in and stock out from the warehouse, please follow the steps below.
Step 1: Please go to Inventory >> warehouses >> Click on Manage warehouses
Step 2: Click on Roles >> Click on Edit Role
Step 3: Disable the permission of the role for stock in and stock >> Click on Save