hello
can anyone check my code its not working?
I’d like to make the stock entry details read-only after saving it.
frappe.ui.form.on(“Stock Entry”, “items_on_form_rendered”, function(frm, grid_row, cdt, cdn){
var grid_row = cur_frm.open_grid_row();
if(frm.doc.workflow_state === “Send Transfer”){
grid_row.grid_form.fields_dict.item_code.df.read_only = true;
grid_row.grid_form.fields_dict.item_code.refresh();
}
})