fix: only add convert to deal bulk action on leads listview

This commit is contained in:
Shariq Ansari 2024-08-06 01:38:59 +05:30
parent 2b5fd93922
commit a5fef2f26b

View File

@ -195,7 +195,7 @@ function bulkActions(selections, unselectAll) {
})
}
if (!props.options.hideDelete) {
if (props.doctype === 'CRM Lead') {
actions.push({
label: __('Convert to Deal'),
onClick: () => convertToDeal(selections, unselectAll),