Merge pull request #9781 from prssanna/customize-form-button
feat: Add button to go to list in Customize Form
This commit is contained in:
commit
0dd7ffd915
1 changed files with 4 additions and 0 deletions
|
|
@ -85,6 +85,10 @@ frappe.ui.form.on("Customize Form", {
|
|||
if(frm.doc.doc_type) {
|
||||
frappe.customize_form.set_primary_action(frm);
|
||||
|
||||
frm.add_custom_button(__('Go to {0} List', [frm.doc.doc_type]), function() {
|
||||
frappe.set_route('List', frm.doc.doc_type);
|
||||
});
|
||||
|
||||
frm.add_custom_button(__('Refresh Form'), function() {
|
||||
frm.script_manager.trigger("doc_type");
|
||||
}, "fa fa-refresh", "btn-default");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue