added onload_post_render

This commit is contained in:
Rushabh Mehta
2011-06-24 09:51:58 +05:30
parent 3e03743250
commit 1d15c557a9
4 changed files with 21 additions and 13 deletions

View File

@@ -42,15 +42,16 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
hide_field(['customer', 'customer_address', 'contact_person', 'customer_name', 'contact_display', 'customer_group']);
}
}
if(doc.enquiry_from == 'Lead' && doc.lead) {
cur_frm.cscript.lead(doc,cdt,cdn);
}
// setup fetch
cur_frm.cscript.set_fetch();
}
cur_frm.cscript.onload_post_render = function(doc, cdt, cdn) {
if(doc.enquiry_from == 'Lead' && doc.lead) {
cur_frm.cscript.lead(doc,cdt,cdn);
}
}
// fetch
// ===============================================================