Query for Item custom field

Hi all,

I’m doing some customization for the Item like this:

  • I add custom field in Item
  • When I type the code of Item in Child Table of Sales Order Item and Quotation Item, I would like to fetch that custom field into new custom field in Sales Order item.

However, I cannot find for the code of this query and set value to child table after looking around Javascript script in some folder like Sales Order Item doctype, Selling, Public JS. Any suggestion where this code is?

I was just trying the same thing, this works for me. Add it as custom script for Sales Order:

frappe.ui.form.on("Sales Order", "refresh", function (frm, cdt, cdn) {