Creating a BOM from the Item connections

When on the Item connections tab, if you click the plus to create a new BOM for the item, it will set the item as the Item to Manufacture and add as a component:

This doesn’t make any sense to me, as an item can’t be made using itself.

I’m using ERPNext v16.31.1

1 Like

I found what makes this happen, even if the why eludes me.

The behaviour comes from how make_new automatically fills in fields when creating a new document:

It will go through all the fields in the BOM document, and for any which are Link fields to Item, set them to the item. This includes the item field in the BOM Item child table, as it is set as required.

1 Like