I wanted to write a custom script in Sales Order page to change the workflow state to Review after update button is clicked.
Please anyone help me
I wanted to write a custom script in Sales Order page to change the workflow state to Review after update button is clicked.
Please anyone help me
frappe.ui.form.on(‘Sales Order’, {
on_update(frm) {
cur_frm.set_value(“workflow_state”, “Review”);
}
})
Can you please help me? whether this is correct?
frappe.ui.form.on('Sales Order', {
MY_BUTTON_NAME: function(frm) {
frm.set_value(“workflow_state”, “Review”);
}
})
The above code is not working.