- Add properties
parent_warehouse - Add properties
old_parent,lft(int) andrgt(int) see “Account” DocType - In Warehouse class, set
nsm_parent_fieldasparent_warehouse[1] - In
on_updateandon_trashcall update_nsm (see Account class) - That will build the nested set tree for you.
- You can also extend
sales_browserto include Warehouse along with Item Group, Customer Group etc for the Tree View (I can help you with that) - Add entries in
stock.pysimilar to Item Group
You will also need to create reports for that?