From ecb81929c777956359f8383064e574ac292a4137 Mon Sep 17 00:00:00 2001 From: ahashad <36322991+ahashad@users.noreply.github.com> Date: Thu, 8 Apr 2021 06:43:36 +0200 Subject: [PATCH] Update client.py (#12790) Fix You do not have enough permissions to access this resource Error, when adding barcode during creating new stock Item. --- frappe/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/client.py b/frappe/client.py index 58cfbd2edd..a2e04452ff 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -104,7 +104,7 @@ def get_value(doctype, fieldname, filters=None, as_dict=True, debug=False, paren if frappe.get_meta(doctype).issingle: value = frappe.db.get_values_from_single(fields, filters, doctype, as_dict=as_dict, debug=debug) else: - value = get_list(doctype, filters=filters, fields=fields, debug=debug, limit_page_length=1, as_dict=as_dict) + value = get_list(doctype, filters=filters, fields=fields, debug=debug, limit_page_length=1, parent=parent, as_dict=as_dict) if as_dict: return value[0] if value else {}