Ability to add Single doctype to the desktop
This commit is contained in:
parent
4b6f263390
commit
7657143221
1 changed files with 7 additions and 0 deletions
|
|
@ -152,6 +152,13 @@ frappe.ui.form.Toolbar = Class.extend({
|
|||
this.page.add_menu_item(__("Reload"), function() {
|
||||
me.frm.reload_doc();}, true);
|
||||
|
||||
// add to desktop
|
||||
if(me.frm.meta.issingle) {
|
||||
this.page.add_menu_item(__('Add to Desktop'), function () {
|
||||
frappe.add_to_desktop(me.frm.doctype, me.frm.doctype);
|
||||
}, true);
|
||||
}
|
||||
|
||||
// delete
|
||||
if((cint(me.frm.doc.docstatus) != 1) && !me.frm.doc.__islocal
|
||||
&& frappe.model.can_delete(me.frm.doctype)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue