show only party_type doctypes in Party Type field of bank account

This commit is contained in:
ashish-greycube
2019-04-26 11:35:04 +05:30
parent c4e92b3004
commit 3763169978

View File

@@ -12,6 +12,11 @@ frappe.ui.form.on('Bank Account', {
}
};
});
frm.set_query("party_type", function() {
return {
query: "erpnext.setup.doctype.party_type.party_type.get_party_type",
}
});
},
refresh: function(frm) {
frappe.dynamic_link = { doc: frm.doc, fieldname: 'name', doctype: 'Bank Account' }