[fix] [minor] setup leave approver select option in employee
This commit is contained in:
parent
11faa57233
commit
30bd908833
@ -4,7 +4,6 @@
|
|||||||
wn.provide("erpnext.hr");
|
wn.provide("erpnext.hr");
|
||||||
erpnext.hr.EmployeeController = wn.ui.form.Controller.extend({
|
erpnext.hr.EmployeeController = wn.ui.form.Controller.extend({
|
||||||
setup: function() {
|
setup: function() {
|
||||||
this.setup_leave_approver_select();
|
|
||||||
this.frm.fields_dict.user_id.get_query = function(doc,cdt,cdn) {
|
this.frm.fields_dict.user_id.get_query = function(doc,cdt,cdn) {
|
||||||
return { query:"core.doctype.profile.profile.profile_query"} }
|
return { query:"core.doctype.profile.profile.profile_query"} }
|
||||||
this.frm.fields_dict.reports_to.get_query = function(doc,cdt,cdn) {
|
this.frm.fields_dict.reports_to.get_query = function(doc,cdt,cdn) {
|
||||||
@ -12,6 +11,7 @@ erpnext.hr.EmployeeController = wn.ui.form.Controller.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload: function() {
|
onload: function() {
|
||||||
|
this.setup_leave_approver_select();
|
||||||
this.frm.toggle_display(["esic_card_no", "gratuity_lic_id", "pan_number", "pf_number"],
|
this.frm.toggle_display(["esic_card_no", "gratuity_lic_id", "pan_number", "pf_number"],
|
||||||
wn.control_panel.country==="India");
|
wn.control_panel.country==="India");
|
||||||
if(this.frm.doc.__islocal) this.frm.set_value("employee_name", "");
|
if(this.frm.doc.__islocal) this.frm.set_value("employee_name", "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user