This commit is contained in:
Vassili Minaev 2026-05-05 18:33:52 -06:00
parent b42b2cd1ad
commit 7d99357ac7
2 changed files with 5 additions and 1 deletions

View file

@ -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",

View file

@ -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)