소스 검색

Merge pull request #12828 from rohitwaghchaure/fixed-user-type-patch

fix: user type patch
version-14
rohitwaghchaure 4 년 전
committed by GitHub
부모
커밋
d10861bf21
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      frappe/core/doctype/user_type/user_type.py

+ 4
- 2
frappe/core/doctype/user_type/user_type.py 파일 보기

@@ -121,8 +121,10 @@ class UserType(Document):
self.prepare_select_perm_doctypes(doc, user_doctypes, select_doctypes)

for child_table in doc.get_table_fields():
child_doc = frappe.get_meta(child_table.options)
self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes)
if frappe.db.table_exists(child_table.options):
child_doc = frappe.get_meta(child_table.options)
if not child_doc.istable:
self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes)

if select_doctypes:
select_doctypes = set(select_doctypes)


불러오는 중...
취소
저장