Noah Jacob
3 years ago
committed by
frappe-pr-bot
2 changed files with 18 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||
|
|||
|
|||
frappe.ui.form.on("Contact", { |
|||
refresh(frm) { |
|||
frm.set_query('link_doctype', "links", function() { |
|||
return { |
|||
query: "frappe.contacts.address_and_contact.filter_dynamic_link_doctypes", |
|||
filters: { |
|||
fieldtype: ["in", ["HTML", "Text Editor"]], |
|||
fieldname: ["in", ["contact_html", "company_description"]], |
|||
} |
|||
}; |
|||
}); |
|||
frm.refresh_field("links"); |
|||
} |
|||
}); |
Loading…
Reference in new issue