[minor] don't allow transactions in contact/address link_doctype field

This commit is contained in:
mbauskar 2017-03-12 22:06:47 +05:30
parent 3c95bd36c6
commit e7b520d443
2 changed files with 4 additions and 4 deletions

View file

@ -33,8 +33,8 @@ frappe.ui.form.on("Contact", {
return {
query: "frappe.geo.address_and_contact.filter_dynamic_link_doctypes",
filters: {
fieldtype: "Link",
options: frm.doc.doctype,
fieldtype: "HTML",
fieldname: "contact_html",
}
}
});

View file

@ -17,8 +17,8 @@ frappe.ui.form.on("Address", {
return {
query: "frappe.geo.address_and_contact.filter_dynamic_link_doctypes",
filters: {
fieldtype: "Link",
options: frm.doc.doctype,
fieldtype: "HTML",
fieldname: "address_html",
}
}
});