mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
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:
@@ -12,7 +12,6 @@ frappe.ui.form.on("Instructor", {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
frm.set_query("department", "instructor_log", function() {
|
frm.set_query("department", "instructor_log", function() {
|
||||||
return {
|
return {
|
||||||
"filters": {
|
"filters": {
|
||||||
@@ -49,5 +48,12 @@ frappe.ui.form.on("Instructor", {
|
|||||||
frappe.set_route("List", "Assessment Plan");
|
frappe.set_route("List", "Assessment Plan");
|
||||||
}, __("Assessment Plan"));
|
}, __("Assessment Plan"));
|
||||||
}
|
}
|
||||||
|
frm.set_query("employee", function(doc) {
|
||||||
|
return {
|
||||||
|
"filters": {
|
||||||
|
"department": doc.department,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user