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 4fcefda6c7
commit 467609b193

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' }