Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
c3414cd9d1
@ -23,6 +23,7 @@ cur_frm.cscript.onload = function(doc, dt, dn) {
|
|||||||
method:"get_approver_list",
|
method:"get_approver_list",
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
cur_frm.set_df_property("leave_approver", "options", r.message);
|
cur_frm.set_df_property("leave_approver", "options", r.message);
|
||||||
|
get_leave_balance(cur_frm.doc);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ def page_name(title):
|
|||||||
|
|
||||||
def update_page_name(doc, title):
|
def update_page_name(doc, title):
|
||||||
"""set page_name and check if it is unique"""
|
"""set page_name and check if it is unique"""
|
||||||
webnotes.conn.sql(doc, "page_name", title)
|
webnotes.conn.set(doc, "page_name", page_name(title))
|
||||||
|
|
||||||
res = webnotes.conn.sql("""\
|
res = webnotes.conn.sql("""\
|
||||||
select count(*) from `tab%s`
|
select count(*) from `tab%s`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user