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