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:
commit
282f495fb6
@ -3,13 +3,15 @@ frappe.listview_settings['Quotation'] = {
|
|||||||
"company", "currency", 'valid_till'],
|
"company", "currency", 'valid_till'],
|
||||||
|
|
||||||
onload: function(listview) {
|
onload: function(listview) {
|
||||||
listview.page.fields_dict.quotation_to.get_query = function() {
|
if (listview.page.fields_dict.quotation_to) {
|
||||||
return {
|
listview.page.fields_dict.quotation_to.get_query = function() {
|
||||||
"filters": {
|
return {
|
||||||
"name": ["in", ["Customer", "Lead"]],
|
"filters": {
|
||||||
}
|
"name": ["in", ["Customer", "Lead"]],
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
get_indicator: function(doc) {
|
get_indicator: function(doc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user