refactor: use list instead of tuple constructor
This commit is contained in:
parent
d8a4cf896b
commit
6d8c691ddd
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ class UserType(Document):
|
|||
self.select_doctypes = []
|
||||
|
||||
select_doctypes = []
|
||||
user_doctypes = tuple(row.document_type for row in self.user_doctypes)
|
||||
user_doctypes = [row.document_type for row in self.user_doctypes]
|
||||
|
||||
for doctype in user_doctypes:
|
||||
doc = frappe.get_meta(doctype)
|
||||
|
|
@ -267,4 +267,4 @@ def apply_permissions_for_non_standard_user_type(doc, method=None):
|
|||
user_doc.update_children()
|
||||
add_user_permission(doc.doctype, doc.name, doc.get(data[1]))
|
||||
else:
|
||||
frappe.db.set_value('User Permission', perm_data[0], 'user', doc.get(data[1]))
|
||||
frappe.db.set_value('User Permission', perm_data[0], 'user', doc.get(data[1]))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue