diff --git a/frappe/core/doctype/custom_docperm/custom_docperm.json b/frappe/core/doctype/custom_docperm/custom_docperm.json index 00a47a0113..49cbc8e69e 100644 --- a/frappe/core/doctype/custom_docperm/custom_docperm.json +++ b/frappe/core/doctype/custom_docperm/custom_docperm.json @@ -1,6 +1,7 @@ { "actions": [], "allow_import": 1, + "allow_rename": 1, "autoname": "hash", "creation": "2017-01-11 04:21:35.217943", "doctype": "DocType", @@ -227,7 +228,7 @@ ], "grid_page_length": 50, "links": [], - "modified": "2025-05-22 16:59:35.484376", + "modified": "2026-03-31 20:37:16.503023", "modified_by": "Administrator", "module": "Core", "name": "Custom DocPerm", diff --git a/frappe/core/doctype/custom_docperm/custom_docperm.py b/frappe/core/doctype/custom_docperm/custom_docperm.py index 485e187c5e..84e1724dd2 100644 --- a/frappe/core/doctype/custom_docperm/custom_docperm.py +++ b/frappe/core/doctype/custom_docperm/custom_docperm.py @@ -40,6 +40,9 @@ class CustomDocPerm(Document): def get_permission_log_options(self, event=None): return {"for_doctype": "DocType", "for_document": self.parent} + # def autoname(self): + # self.name = f"{self.parent}-{self.role}-{self.permlevel}" + def update_custom_docperm(docperm, values): custom_docperm = frappe.get_doc("Custom DocPerm", docperm)