That commit has been overwritten by the one I linked. The problem is in the check_parent_permission function:
def check_parent_permission(parent):
if parent:
if frappe.permissions.has_permission(parent):
return
# Either parent not passed or the user doesn't have permission on parent doctype of child table!
raise frappe.PermissionError
As you can see, the error is raised if you either do not have permission on the parent or there is no parent passed.
Or you can make a white listed API in the server side in your custom app that accept your filters as parameters and then let it returns your result based on your frappe.get_value(āChild Tableā, filters={āfieldnameā: para1, āanother_fieldnameā: para20}, fieldname = [āf1ā,āf2ā,āf3ā]) function and then call it from the client side by the frappe call something like:
frappe.call({
method: "yourApp.path.to.your.api",
args: {
paras:["para1", "para2"],
},
callback: function (r) {
data = r.message;
}
});
Hello, I tried your suggestion and not worked for me
EDIT: Problem solved, renaming childtable.
My childtable has a link to another doctype, and that doctype has a link to another doctype that the name was the same of this childtable. I think the naming ambiguity was confusing the system thenā¦