fix(employee onboarding): stop showing irrelevant job offer links for a job applicant (#20053)

This commit is contained in:
DeeMysterio 2019-12-23 19:02:29 +05:30 committed by Nabin Hait
parent 964cbc03ba
commit 152c6be209

View File

@ -7,6 +7,14 @@ frappe.ui.form.on('Employee Onboarding', {
frm.add_fetch("employee_onboarding_template", "department", "department");
frm.add_fetch("employee_onboarding_template", "designation", "designation");
frm.add_fetch("employee_onboarding_template", "employee_grade", "employee_grade");
frm.set_query('job_offer', function () {
return {
filters: {
'job_applicant': frm.doc.job_applicant
}
};
});
},
refresh: function(frm) {