Hi guys,
What is the most correct approach to use custom button for saving and some callback?
After inspecting event listeners found:
set_page_actions: function(data) (part of the above function) else { var click = { "Save": function() { me.frm.save('Save', null, this); }, "Submit": function() { me.frm.savesubmit(this); }, "Update": function() { me.frm.save('Update', null, this); }, "Amend": function() { me.frm.amend_doc(); } }[status];
What is the most frappe-wise way to tweak action of the save button (add callback) or to create custom button with frm.save
?