Merge pull request #22672 from bhavesh95863/patch-4

fix: Quotation list view blank if quotation_to field not set as a standard filter
This commit is contained in:
Rucha Mahabal 2020-07-14 00:30:15 +05:30 committed by GitHub
commit 282f495fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,13 +3,15 @@ frappe.listview_settings['Quotation'] = {
"company", "currency", 'valid_till'],
onload: function(listview) {
listview.page.fields_dict.quotation_to.get_query = function() {
return {
"filters": {
"name": ["in", ["Customer", "Lead"]],
}
if (listview.page.fields_dict.quotation_to) {
listview.page.fields_dict.quotation_to.get_query = function() {
return {
"filters": {
"name": ["in", ["Customer", "Lead"]],
}
};
};
};
}
},
get_indicator: function(doc) {