In Student Sibling table, the current student id should not appear as sibling.

This commit is contained in:
Nabin Hait 2017-03-12 16:45:20 +05:30
parent fb4b8d926f
commit b2a8482cc5

View File

@ -1,6 +1,17 @@
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// 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", {
guardian: function(frm) {