To Use this feature from product edit page, enable “Enable Stock Syncronization” checkbox and select “location” from dropdown once you done that the main stock will automatically sync with the selected location stock and display on the product page (“Refer the below image”)

