fix(minor): opportunity_from may not be selected (#19063)
This commit is contained in:
parent
a2a9b39794
commit
72dcb51177
@ -18,12 +18,14 @@ frappe.listview_settings['Opportunity'] = {
|
|||||||
listview.call_for_selected_items(method, {"status": "Closed"});
|
listview.call_for_selected_items(method, {"status": "Closed"});
|
||||||
});
|
});
|
||||||
|
|
||||||
listview.page.fields_dict.opportunity_from.get_query = function() {
|
if(listview.page.fields_dict.opportunity_from) {
|
||||||
return {
|
listview.page.fields_dict.opportunity_from.get_query = function() {
|
||||||
"filters": {
|
return {
|
||||||
"name": ["in", ["Customer", "Lead"]],
|
"filters": {
|
||||||
}
|
"name": ["in", ["Customer", "Lead"]],
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user