[Fix]Workstation holiday list
This commit is contained in:
parent
535462fc20
commit
d33c44e3a5
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
frappe.ui.form.on("Workstation", {
|
||||
onload: function(frm) {
|
||||
if(frm.is_new())
|
||||
{
|
||||
frappe.call({
|
||||
type:"GET",
|
||||
method:"erpnext.manufacturing.doctype.workstation.workstation.get_default_holiday_list",
|
||||
@ -15,3 +15,5 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user