fix: Quotation list view blank if quotation_to field not set as a standard filter

This commit is contained in:
bhavesh95863 2020-07-13 23:15:31 +05:30 committed by GitHub
parent 165d57aa0b
commit eb69859d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ frappe.listview_settings['Quotation'] = {
"company", "currency", 'valid_till'], "company", "currency", 'valid_till'],
onload: function(listview) { onload: function(listview) {
if (listview.page.fields_dict.quotation_to) {
listview.page.fields_dict.quotation_to.get_query = function() { listview.page.fields_dict.quotation_to.get_query = function() {
return { return {
"filters": { "filters": {
@ -10,6 +11,7 @@ frappe.listview_settings['Quotation'] = {
} }
}; };
}; };
}
}, },
get_indicator: function(doc) { get_indicator: function(doc) {