Browse Source

fix: Export Links in Customize Form (#16333)

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
Mohammed Redah 3 years ago
committed by GitHub
parent
commit
60814c4e3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      frappe/modules/utils.py

+ 3
- 1
frappe/modules/utils.py View File

@@ -45,7 +45,7 @@ def export_customizations(module, doctype, sync_on_migrate=0, with_permissions=0
if not frappe.get_conf().developer_mode:
raise Exception('Not developer mode')

custom = {'custom_fields': [], 'property_setters': [], 'custom_perms': [],
custom = {'custom_fields': [], 'property_setters': [], 'custom_perms': [],'links':[],
'doctype': doctype, 'sync_on_migrate': sync_on_migrate}

def add(_doctype):
@@ -53,6 +53,8 @@ def export_customizations(module, doctype, sync_on_migrate=0, with_permissions=0
fields='*', filters={'dt': _doctype})
custom['property_setters'] += frappe.get_all('Property Setter',
fields='*', filters={'doc_type': _doctype})
custom['links'] += frappe.get_all('DocType Link',
fields='*', filters={'parent': _doctype})

add(doctype)



Loading…
Cancel
Save