fix: Employee field should be filtered based on department on doctype Instructor (#20705)
* Fix: Filtered Employee based on Department on Instructor doctype (#20598) * Fix: Syntax error (#20598) * Fix: Syntax error (#20598) * Fix: Syntax error (#20598) * Fix: Syntax error (#20598) * fix : Filtered Employee based on Department on Instructor doctype (#20704)
This commit is contained in:
parent
10aab65338
commit
08fa7590ef
@ -12,7 +12,6 @@ frappe.ui.form.on("Instructor", {
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
frm.set_query("department", "instructor_log", function() {
|
||||
return {
|
||||
"filters": {
|
||||
@ -49,5 +48,12 @@ frappe.ui.form.on("Instructor", {
|
||||
frappe.set_route("List", "Assessment Plan");
|
||||
}, __("Assessment Plan"));
|
||||
}
|
||||
frm.set_query("employee", function(doc) {
|
||||
return {
|
||||
"filters": {
|
||||
"department": doc.department,
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user