Hello Team, All,
The cur_frm.set_query doesn’t seem to limit the link options as required when in the quick entry view of a form. See example below:
frappe.ui.form.on('Student Batch', {
refresh: function(frm) {
},
onload: function(frm){
cur_frm.set_query("academic_term",function(){
return{
"filters":{
"academic_year": (frm.doc.academic_year)
}
};
});
}
});
cur_frm.add_fetch("student", "title", "student_name");
Works Well
Doesn’t Work Well
Is this a bug? Do I raise an issue?
Regards,
CKSGB