Set_query in client doesn't work for quick entry screens

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){
					"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?


1 Like

We have this problem as well. It seems that this is not easy to solve or time consuming, that’s why we should not use quick entry, if our applications need it.

Currently having this issue, has it been solved yet?