I want to set value to custom field mfg_code whenever Item is select in BOM Required Items

Here is snapshot which I want…

Whenever I enter Item code then its corresponding mfg_code will be paste in Mfg Column… I tried curr.frm.add_fetch(‘item’,‘mfg_code’,‘mfg_code’) method but doesn’t work…Any help from this great community…?

check this topic

@OmarJaber dear. This works but not in table I want it in table of materials while adding Bill of Materials…

I tried outside the table and it works… here is snapshot…

same will work even for child table
just make your edit on child table name not parent doctype

Dear @OmarJaber I make my edit on child table but doesn’t work…