removed control panel

This commit is contained in:
Rushabh Mehta
2014-04-04 12:00:36 +05:30
parent 312ba99e71
commit 558a9aabfb
11 changed files with 20 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ erpnext.hr.EmployeeController = frappe.ui.form.Controller.extend({
onload: function() {
this.setup_leave_approver_select();
this.frm.toggle_display(["esic_card_no", "gratuity_lic_id", "pan_number", "pf_number"],
frappe.control_panel.country==="India");
frappe.boot.sysdefaults.country==="India");
if(this.frm.doc.__islocal) this.frm.set_value("employee_name", "");
},