fix: Ignore Customer Group Perm on AlL Products page (#25396)
This commit is contained in:
parent
c221682373
commit
b91fcbd70e
@ -173,7 +173,7 @@ def _get_tree_conditions(args, parenttype, table, allow_blank=True):
|
|||||||
if parenttype in ["Customer Group", "Item Group", "Territory"]:
|
if parenttype in ["Customer Group", "Item Group", "Territory"]:
|
||||||
parent_field = "parent_{0}".format(frappe.scrub(parenttype))
|
parent_field = "parent_{0}".format(frappe.scrub(parenttype))
|
||||||
root_name = frappe.db.get_list(parenttype,
|
root_name = frappe.db.get_list(parenttype,
|
||||||
{"is_group": 1, parent_field: ("is", "not set")}, "name", as_list=1)
|
{"is_group": 1, parent_field: ("is", "not set")}, "name", as_list=1, ignore_permissions=True)
|
||||||
|
|
||||||
if root_name and root_name[0][0]:
|
if root_name and root_name[0][0]:
|
||||||
parent_groups.append(root_name[0][0])
|
parent_groups.append(root_name[0][0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user