Populate Custom Feild from master

I have a custom field : net_weight in Sales Order Item. I need it to populate from Item.net_weight. I have tried setting in the option box as follows: item.net_weight. However it is not picking it. Also note that this is a read only field.

Please help

Try this,

cur_frm.add_fetch('item_code','net_weight','net_weight');

Write above custom script in Sales Order.
It will fetch net_weight on selecting item_code in sales order item.

Thanks a million @kolate_sambhaji !! It works. I was trying it out in Sales Order Item earlier.

1 Like