mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -151,7 +151,7 @@ erpnext.setup_mousetrap = function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Mousetrap.bind(["command+s", "ctrl+s"], function() {
|
Mousetrap.bind(["command+s", "ctrl+s"], function() {
|
||||||
if(cur_frm)
|
if(cur_frm && !cur_frm.save_disabled)
|
||||||
cur_frm.save();
|
cur_frm.save();
|
||||||
else if(wn.container.page.save_action)
|
else if(wn.container.page.save_action)
|
||||||
wn.container.page.save_action();
|
wn.container.page.save_action();
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class DocType:
|
|||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
def get_permissions(self,doctype):
|
def get_permissions(self,doctype):
|
||||||
import webnotes.model.doctype
|
import webnotes.model.doctype
|
||||||
doclist = webnotes.model.doctype.get(doctype)
|
doclist = webnotes.model.doctype.get(doctype).get_parent_doclist()
|
||||||
|
|
||||||
ptype = [{
|
ptype = [{
|
||||||
'role': perm.role,
|
'role': perm.role,
|
||||||
|
|||||||
Reference in New Issue
Block a user