I was trying to fetch the value from child table and it was working fine but all of sudden it stopped.
Here’s my custom script:
var user
frappe.call({
method:"frappe.client.get_list",
args: {
doctype:"Limit Editor",
filters: {"item_name":service_name},
parent: 'User',
fields:['parent','`tabLimit Editor`.limit']
},
async:false,
callback: function(r) {
var data=r.message
for(var i=0;i<data.length;i++)
{
parent.push(r.message[i]['parent'])
}
}
});
Here’s the traceback
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 61, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1007, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/client.py", line 32, in get_list
check_parent_permission(parent, doctype)
File "/home/frappe/frappe-bench/apps/frappe/frappe/client.py", line 367, in check_parent_permission
raise frappe.PermissionError
PermissionError
Note- HAPPENING AFTER BENCH UPDATE