📅  最后修改于: 2022-03-11 15:00:14.551000             🧑  作者: Mango
frappe.ui.form.on(cur_frm.doctype, {
'onload_post_render': function(frm) {
frm.fields_dict.items.grid.wrapper.on('focus', 'input[data-fieldname="item_name"][data-doctype="Sales Invoice Item"]', function(e) {
console.log(e.type);
});
}
});