fix: Pass parent_doctype required for DatabaseQuery perm checks
has_child_table_permission would throw 'Parent DocType Required: Please
specify a valid parent DocType for {TEST DOCTYPE}' after the previous
commit 33b7d7d74f. Passing parent_doctype
solves this
This commit is contained in:
parent
33b7d7d74f
commit
3b7b555148
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ def get_list(doctype, fields=None, filters=None, order_by=None,
|
|||
|
||||
args = frappe._dict(
|
||||
doctype=doctype,
|
||||
parent_doctype=parent,
|
||||
fields=fields,
|
||||
filters=filters,
|
||||
or_filters=or_filters,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue