Frappe Cloud Support Partners Foundation

Customize Connections links

Hi guys,

I have been trying to modify these links under Connections. Where can i edit these links?

In there you find “link documents”.

i want to remove the default ones. these are not defined there

Hi Erik,

The only way I know is modifying the related Python code.

This is the path to the file for Patient Appointments:

from __future__ import unicode_literals
from frappe import _

def get_data():
	return {
		'fieldname': 'appointment',
		'non_standard_fieldnames': {
			'Patient Medical Record': 'reference_name'
		'transactions': [
				'label': _('Consultations'),
				'items': ['Patient Encounter', 'Vital Signs', 'Patient Medical Record']

i found this also. so i removed the links but they aren’t going away :slight_smile: i’m doing something wrong.

in a custom script

    frappe.ui.form.on('Sales Order', {
	refresh(frm) {
		setTimeout(() => {
			$("[data-doctype='Auto Repeat']").hide();
			$("[data-doctype='Work Order']").hide();
			$("[data-doctype='Pick List']").hide();
			$("[data-doctype='Material Request']").hide();
			$("[data-doctype='Payment Entry']").hide();
			$("[data-doctype='Payment Request']").hide();
			$("[data-doctype='Journal Entry']").hide();
		}, 10);

if you do changes directly in the python code, dont forget to:
bench build
bench clear-cache
bench restart

@Erik_Jeurissen, there’s also a “Linked Documents” section on the DocType itself. This may do teh trick for you.