fix: Export Links in Customize Form (#16333)
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
5b8d930165
commit
60814c4e3f
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue