In Student Sibling table, the current student id should not appear as sibling.
This commit is contained in:
parent
fb4b8d926f
commit
b2a8482cc5
@ -1,6 +1,17 @@
|
|||||||
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
|
frappe.ui.form.on('Student', {
|
||||||
|
setup: function(frm) {
|
||||||
|
frm.set_query("student", "siblings", function(doc, cdt, cdn) {
|
||||||
|
return {
|
||||||
|
"filters": {
|
||||||
|
"name": ["!=", doc.name]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
frappe.ui.form.on("Student Guardian", {
|
frappe.ui.form.on("Student Guardian", {
|
||||||
guardian: function(frm) {
|
guardian: function(frm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user