Even this doesn’t help. I create a sales order, add an item, select control BOM.
Add one more item and select control BOM. Till then it works fine. Now if I want to change the control BOM for the first item, the control BOM drop-down is listing the BOMs of the second item.
If I reselect the same Item and then click on control BOM, the list is proper.
The custom script is getting executed when a selection of item is done, not when the control BOM dropdown is clicked.
Is it possible to execute code on click of a select field?