Programmatically Warehouse Creation Missing Ref

Hello ppl,

I don’t know how to debug this one.
I have created programmatically warehouses for my app in a install script

But I can’t add any childs

Any thoughts or ideas?

Check if the warehouse is also created as an account under: Accounts > Account. Programmatically you would need to also insert it as an Account as each warehouse in ERPNext also becomes an account for booking stock transactions


You are half right. In ‘Account’ for some reason Account are created with double addr.

I will patch it :slight_smile: Ty for your help