How to Link Shelf to the warehouse

Hii Team , I have created one Custom doctype called Shelf and I Link Warehouse Doctype to it . Whenever I added new shelf , I want that shelf to appear in the warehouse tree .

Thanks !!


My suggestion is that instead of using Custom Doctype for shelf, use the inventory dimesion functionality of ERPNext.

Please read this doc for more information: Inventory Dimension (

Divyesh Mangroliya