mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
* ci: add prettier to pre-commit
(cherry picked from commit 2c16036ef3)
* style: format js files
---------
Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
15 lines
379 B
JavaScript
15 lines
379 B
JavaScript
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");
|
|
},
|
|
});
|