fix: progress bar not rendering in list view for Percent fields

This commit is contained in:
gajjug004 2026-03-31 21:17:21 +05:30
parent 100d15a1f9
commit 2f2abbf0a3

View file

@ -984,6 +984,11 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
html = `<span class="ellipsis">
${_value}
</span>`;
} else if (df.fieldtype === "Percent") {
return `<div style="width: 100%;"
title="${__(label)}: ${frappe.utils.escape_html(_value)}">
${format()}
</div>`;
} else {
html = `<a class="${filterable} ellipsis"
data-filter="${fieldname},=,${frappe.utils.escape_html(value)}">