fix:readability

This commit is contained in:
0Pranav 2019-10-30 11:14:49 +05:30
parent 0f0d6ce25c
commit be5c6e7aec

View File

@ -21,10 +21,9 @@ frappe.ui.form.on('Maintenance Schedule', {
}
},
refresh: function(frm) {
setTimeout(()=> {
debugger;
frm.toggle_display('generate_schedule',!(frm.is_new()));
frm.toggle_display('schedule',!(frm.is_new()));
setTimeout(() => {
frm.toggle_display('generate_schedule', !(frm.is_new()));
frm.toggle_display('schedule', !(frm.is_new()));
},10);
},
customer: function(frm) {